hugo/docs/content/extras/analytics.md
Bjørn Erik Pedersen 4a79fa0c33 Revert the "standardize author data"
There were some breaking changes etc. that is too late to fix for 0.17.

Let us think this through and add proper author support for Hugo 0.18.

Fixes #2464

Revert "docs: Add documentation for author profiles"

This reverts commit b6673e5309.

Revert "Add First Class Author Support"

This reverts commit cf978c0649.
2016-09-18 19:16:39 +02:00

663 B

date linktitle menu next prev title weight
2016-02-06 Analytics
main
parent
extras
/extras/builders /extras/aliases Analytics in Hugo 15

Hugo ships with prebuilt internal templates for Google Analytics tracking, including both synchronous and asynchronous tracking codes.

Configuring Google Analytics

Provide your tracking id in your configuration file, e.g. config.yaml.

googleAnalytics = "UA-123-45"

Example

Include the internal template in your templates like so:

{{ template "_internal/google_analytics.html" . }}

For async include the async template:

{{ template "_internal/google_analytics_async.html" . }}