Dogstudio / highway

Highway - A Modern Javascript Transitions Manager
https://highway.js.org/
MIT License
1.43k stars 92 forks source link

Google Analytics Tracking Bug #90

Closed pimpiet closed 4 years ago

pimpiet commented 4 years ago

The example code in the documentation is no longer working on my site.

For me this works:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxx-1"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag() {
        dataLayer.push(arguments);
    }
    gtag('js', new Date());
    gtag('config', 'UA-xxx-1', { 'anonymize_ip': true });
</script>
Anthodpnt commented 4 years ago

Thanks @pimpiet! We'll have a look and update the documentation as soon as possible.