Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated scripts for correctly using gtag. (#2962)
Implementation of Google tag ID to correctly getting tracked requires further modification in addition to the one line script in the `_includes/scripts.liquid` file as ``` <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', '{{ site.google_analytics }}'); </script> ``` I have made the changes and tested it out on my personal webpage to ensure the tracking in analytics dashboard.
- Loading branch information