Switch to GA4

This commit is contained in:
Kovid Goyal 2022-06-30 18:33:46 +05:30
parent f70e39ca03
commit c808876807
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 1 deletions

View File

@ -138,7 +138,6 @@ html_theme_options = {
'show_powered_by': False,
'fixed_sidebar': True,
'sidebar_collapse': True,
'analytics_id': 'UA-20736318-1',
'github_button': False,
}

View File

@ -2,6 +2,15 @@
{%- block extrahead %}
{% if not embedded %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YMW4X5CSKP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YMW4X5CSKP');
</script>
<!-- Quantcast Choice. Consent Manager Tag v2.0 (for TCF 2.0) -->
<!-- See https://www.quantcast.com/protect/sites username is email -->
<script type="text/javascript" async=true>