Add Google Analytics script
Closed this issue · 0 comments
felixwidjaja commented
Hi @geriadam please add GA (below). @DailyAlice said you can add it through the mkdocs.yml
file - https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/
Thanks buddy.
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-52258647-10"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-52258647-10');
</script>