Skip to content

Commit

Permalink
fix: define gtag for adsense
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Apr 2, 2024
1 parent fcf853b commit 2bda71f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions overrides/partials/integrations/analytics/google.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
<!-- BEGIN Google AdSense -->
<!-- Ref: https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced -->
<script>
window.dataLayer = window.dataLayer || []
function gtag() { dataLayer.push(arguments) }

gtag("js", new Date())
gtag("config", "{{ property }}")

gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
Expand Down

0 comments on commit 2bda71f

Please sign in to comment.