Merge pull request #471 from liuboaibc/update_google_analytics_script

update google analytics script
This commit is contained in:
pengfei 2020-11-05 23:28:50 +08:00 committed by GitHub
commit 77b8953255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,13 +26,14 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
{{ if .Site.Params.addGoogleAnalytics }}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YYCVN36HT5"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-181950513-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YYCVN36HT5');
gtag('config', 'UA-181950513-1');
</script>
{{ end }}