We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5e32f commit 0c6878dCopy full SHA for 0c6878d
2 files changed
tutorial/tutorial_sphinx_theme_1/layout.html
@@ -631,7 +631,12 @@
631
{%- if theme_analytics_id %}
632
<!-- Theme Analytics -->
633
<script async src="https://www.googletagmanager.com/gtag/js?id={{ theme_analytics_id }}"></script>
634
- <script></script>
+ <script>
635
+ window.dataLayer = window.dataLayer || [];
636
+ function gtag(){dataLayer.push(arguments);}
637
+ gtag('js', new Date());
638
+ gtag('config', '{{ theme_analytics_id }}');
639
+ </script>
640
641
{%- endif %}
642
tutorial/tutorial_sphinx_theme_1/theme.conf
@@ -5,7 +5,7 @@ pygments_style = default
5
6
[options]
7
canonical_url =
8
-analytics_id =
+analytics_id = G-HLDXVJYYPC
9
analytics_anonymize_ip = False
10
collapse_navigation = True
11
sticky_navigation = True
0 commit comments