Skip to content
Snippets Groups Projects
Unverified Commit 4f5930db authored by Patrick Marsceill's avatar Patrick Marsceill Committed by GitHub
Browse files

Merge pull request #155 from hallowf/update-analytics-to-gtag

Replaced old script for analytics with gtag
parents efbc5c2a 3ad99afb
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,13 @@
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
{% if site.ga_tracking != nil %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.ga_tracking}}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', "{{site.ga_tracking}}");
gtag('config', "{{ site.ga_tracking }}");
</script>
{% endif %}
......@@ -33,5 +33,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
{% seo %}
{% seo %}
</head>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment