Skip to content

Commit

Permalink
add GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Aug 19, 2021
1 parent 9528205 commit 4933dd1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@
{% block extrahead %}{% endblock %}
<script src="{{ base_url }}/js/mathjax.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3KDYJ30F81"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-3KDYJ30F81');
</script>
</head>
{% if palette.primary or palette.accent %}
{% set primary = palette.primary | replace(" ", "-") | lower %}
Expand Down

0 comments on commit 4933dd1

Please sign in to comment.