Closed elessar-ch closed 3 years ago
This PR introduces Google Analytics to tale using Hugo's provided async [https://gohugo.io/templates/internal#google-analytics](internal template). Google Analytics is added to the top of the head tag as suggested by https://developers.google.com/analytics/devguides/collection/analyticsjs.
head
If the googleAnalytics key is added to the config.toml, the template renders the code for Google Analytics, otherwise it will be left out.
googleAnalytics
config.toml
This resolves issue #48.
Thank you so much for this addition! Looks very useful.
This PR introduces Google Analytics to tale using Hugo's provided async [https://gohugo.io/templates/internal#google-analytics](internal template). Google Analytics is added to the top of the
head
tag as suggested by https://developers.google.com/analytics/devguides/collection/analyticsjs.If the
googleAnalytics
key is added to theconfig.toml
, the template renders the code for Google Analytics, otherwise it will be left out.This resolves issue #48.