Merge "Update analytics tracking ID"
This commit is contained in:
@@ -4,17 +4,14 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% include 'css.html' %}
|
||||
{% if theme_analytics_tracking_code %}
|
||||
<!-- Google Analytics -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{ theme_analytics_tracking_code }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ theme_analytics_tracking_code }}">
|
||||
</script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);} gtag('js', new Date());
|
||||
gtag('config', '{{ theme_analytics_tracking_code }}');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ stylesheet = basic.css
|
||||
pygments_style = native
|
||||
|
||||
[options]
|
||||
analytics_tracking_code = UA-17511903-1
|
||||
analytics_tracking_code = G-DD299CMF7V
|
||||
sidebar_mode = toctree
|
||||
display_badge = True
|
||||
display_toc = True
|
||||
|
||||
@@ -4,7 +4,7 @@ stylesheet = basic.css
|
||||
pygments_style = native
|
||||
|
||||
[options]
|
||||
#analytics_tracking_code = UA-17511903-1
|
||||
#analytics_tracking_code = GA_CODE_HERE
|
||||
sidebar_mode = toctree
|
||||
display_badge = True
|
||||
display_toc = True
|
||||
|
||||
Reference in New Issue
Block a user