mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
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 b6673e5309685ae162fdef2dc39c3ce4385c6005. Revert "Add First Class Author Support" This reverts commit cf978c06496d99e76b08418422dda5797d90fed6.
30 lines
663 B
Markdown
30 lines
663 B
Markdown
---
|
|
date: 2016-02-06
|
|
linktitle: Analytics
|
|
menu:
|
|
main:
|
|
parent: extras
|
|
next: /extras/builders
|
|
prev: /extras/aliases
|
|
title: Analytics in Hugo
|
|
weight: 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" . }}
|