Skip to content

Instantly share code, notes, and snippets.

@rolandfarkasCOM
Created May 19, 2022 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolandfarkasCOM/d4c55c61314983811fc16467cb56187d to your computer and use it in GitHub Desktop.
Save rolandfarkasCOM/d4c55c61314983811fc16467cb56187d to your computer and use it in GitHub Desktop.
<amp-analytics type="googleanalytics" config="/ga4.json" data-credentials="include">
<script type="application/json">
{
"vars": {
"GA4_MEASUREMENT_ID": "G-ROLANDF",
"GA4_ENDPOINT_HOSTNAME": "www.google-analytics.com",
"DEFAULT_PAGEVIEW_ENABLED": true,
"GOOGLE_CONSENT_ENABLED": false,
"WEBVITALS_TRACKING": false,
"PERFORMANCE_TIMING_TRACKING": false
}
}
</script>
</amp-analytics>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment