Skip to content

Commit 335fd86

Browse files
authored
adds Google Analytics to docs (#587)
* adds Google Analytics to docs * Use session cookie instead of persistent cookie * Merge refs/heads/master into ga-docs * Merge refs/heads/master into ga-docs
1 parent de2a244 commit 335fd86

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/overrides/main.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,12 @@
5555
{% block libs %}
5656
{{ super() }}
5757
<script src="{{ base_url }}/js/lightbox-plus-jquery.min.js"></script>
58+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5ZWBGTPH13"></script>
59+
<script>
60+
window.dataLayer = window.dataLayer || [];
61+
function gtag(){dataLayer.push(arguments);}
62+
gtag('js', new Date());
63+
64+
gtag('config', 'G-5ZWBGTPH13', { 'anonymize_ip': true, 'cookie_expires': 0 });
65+
</script>
5866
{% endblock libs %}

0 commit comments

Comments
 (0)