Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tutorial/tutorial_sphinx_theme_1/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,12 @@
{%- if theme_analytics_id %}
<!-- Theme Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ theme_analytics_id }}"></script>
<script></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ theme_analytics_id }}');
</script>

{%- endif %}
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion tutorial/tutorial_sphinx_theme_1/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pygments_style = default

[options]
canonical_url =
analytics_id =
analytics_id = G-HLDXVJYYPC
analytics_anonymize_ip = False
collapse_navigation = True
sticky_navigation = True
Expand Down