Possible duplicates:
- Google Analytics Consent mode (beta) - Sends data but is not reflected on dashboard
- Google Consent Mode from GTM
I have followed the official documentation, but on Google Analytics dashboard I don't see any data in the real time mode.
<head>
<script type="text/javascript>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'analytics_storage': 'denied',
'wait_for_update': 500
});
gtag('js', new Date());
gtag('config', 'UA-1XXXXXXXX-');
</script>
</head>
If the "denied" value is updated to "granted", the data shows up on the Google Analytics dashboard. What am I missing here?