Choose one of these integrations to analyse your site traffic with Wowchemy:
- Google Analytics
- a comprehensive, widely adopted solution
- Google Tag Manager
- a service to integrate any analytics provider, including Google Analytics, without modifying any code
- Microsoft Clarity
- to integrate other analytics services, paste the script provided by your analytics provider into Wowchemy’s custom scripts file
[marketing] google_analytics = "" google_tag_manager = ""
If you wish to use Microsoft Clarity, include your associated tracking ID in
[marketing] microsoft_clarity = ""
[Requires Wowchemy v5.0.0.beta1+]
If you wish to use 百度统计 (Baidu Tongji), include your associated tracking ID in
[marketing] baidu_tongji = ""
[Requires Wowchemy v5.1+]
The integrated analytics track users on your live production website and not your own views on your development site, if you have one.
Hugo’s default environments are
development when running the
hugo serve command and
production when running the
hugo command. You can explicitly set the environment to production with
HUGO_ENV or Hugo’s
If you deploy with Netlify, the production environment should already be setup in your
netlify.toml file, but if not, check that your Netlify settings in
netlify.toml are similar to the latest Netlify settings in the Academic template.
If you choose to use Google Tag Manager, you’ll need to setup and configure your analytics solutions, such as Google Analytics, in the Google Tag Manager admin panel.
If you choose to use GA via Google Tag Manager (
google_tag_manager) instead of directly via the
google_analytics option, it will override the direct GA implementation to prevent tracking each user twice.
We recommend testing that your analytics are working as expected. If they are not, check that your production environment is as described above and check that your site URL in your Google/Microsoft admin panel matches your site’s URL. Furthermore, Google and Microsoft provide troubleshooting guides to help with any issues.