mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 01:54:06 +00:00
Update extended_head.html
This commit is contained in:
@@ -42,16 +42,5 @@
|
|||||||
|
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
{{ if eq (getenv "HUGO_ENV") "production"}}
|
{{ if eq (getenv "HUGO_ENV") "production"}}
|
||||||
{{ with .Site.GoogleAnalytics }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
|
||||||
<script>
|
|
||||||
if (navigator.doNotTrack !== '1') {
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag() { dataLayer.push(arguments); }
|
|
||||||
gtag('js', new Date());
|
|
||||||
|
|
||||||
gtag('config', '{{ . }}');
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
Reference in New Issue
Block a user