个人用的谷歌统计

This commit is contained in:
JohnathanLin 2023-10-29 12:19:01 +08:00
parent feb33c031a
commit e6182faa1d
2 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,16 @@
{{- partial "css.html" . }}
{{- partial "head.html" . }}
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MLYM2PFRSJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MLYM2PFRSJ');
</script>
</head>
<body class="

View File

@ -168,7 +168,3 @@
{{- template "partials/templates/twitter_cards.html" . }}
{{- template "partials/templates/schema_json.html" . }}
{{- end -}}
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}