Switch to internal Google Analytic temple to support v4.
This commit is contained in:
parent
95f637dcc5
commit
030c7217fd
2 changed files with 1 additions and 5 deletions
|
|
@ -26,7 +26,3 @@ if (cookieConsent) {
|
|||
window['ga-disable-' + googleAnalytics] = true;
|
||||
}
|
||||
}
|
||||
|
||||
var _gaq = window._gaq || [];
|
||||
_gaq.push(['_setAccount', googleAnalytics]);
|
||||
_gaq.push(['_trackPageView']);
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@
|
|||
{{ if .Site.GoogleAnalytics -}}
|
||||
{{ $script := resources.Get "js/tracking.js" | resources.ExecuteAsTemplate "js/tracking.js" . | minify | fingerprint -}}
|
||||
<script src="{{ $script.RelPermalink }}"></script>
|
||||
<script defer src="https://ssl.google-analytics.com/ga.js"></script>
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue