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 -->
|
||||
{{ if eq (getenv "HUGO_ENV") "production"}}
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<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>
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user