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

Merge pull request #162 from nergmada/google-analytics-patch

Modified the google analytics code to match the new tags used by GA
parents 14a3ff5f aa0d8f1d
No related branches found
No related tags found
No related merge requests found
...@@ -15,12 +15,15 @@ ...@@ -15,12 +15,15 @@
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}"> <link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
{% if site.ga_tracking != nil %} {% if site.ga_tracking != nil %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.ga_tracking}}"></script>
<script> <script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; window.dataLayer = window.dataLayer || [];
ga('create', '{{ site.ga_tracking }}', '{{ site.url }}'); function gtag(){dataLayer.push(arguments);}
ga('send', 'pageview'); gtag('js', new Date());
gtag('config', "{{site.ga_tracking}}");
</script> </script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
{% endif %} {% endif %}
{% if site.search_enabled != nil %} {% if site.search_enabled != nil %}
......
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