Skip to content

Commit

Permalink
Fix Google Analytics script
Browse files Browse the repository at this point in the history
Co-authored by: Tiamo Idzenga <[email protected]>
  • Loading branch information
ashmaroli committed Nov 25, 2024
1 parent 6b9b78d commit 3aa2b24
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
Expand Down

0 comments on commit 3aa2b24

Please sign in to comment.