fix: Change respectDoNotTrack in GA html template
This commit is contained in:
parent
7a18a928f0
commit
c0ee70591e
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
||||
<script>
|
||||
var doNotTrack = false;
|
||||
if ({{ site.Config.Privacy.GoogleAnalytics.RespectDoNotTrack }}) {
|
||||
if ({{ site.Params.features.analytics.services.google.respectDoNotTrack }}) {
|
||||
var dnt = (navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack);
|
||||
var doNotTrack = (dnt == "1" || dnt == "yes");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue