Google consent mode Beta not showing page_view on Google Analytics

Viewed 946

Possible duplicates:

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?

1 Answers

Currently, if the Analytics consent is denied, despite the interactions being sent to the Google Analytics servers, the data set in question (characterized by a parameter that identifies the consent method) is not collected / exposed in the reports. So it's normal that you don't see the data.

Related