How to uninstall Google Consent Mode?
To deactivate the google consent mode completely, follow these steps:
Step 1:
Remove the Google Consent Mode code (in bold) that you inserted before your Google Analytics code or script.
<!-- The initial config of Consent Mode -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
wait_for_update: 500, 11});
gtag('set', 'ads_data_redaction', true);
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-x></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxxx-x');
</script>
Step 2:
After removing the Google Consent code, your Google Analytics code will looks like this:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-x></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxxx-x');
</script>
Note:
Remember to disable the toggle button to “OK” to deactivate Google Consent Mode in the “settings” panel of the Seers CMP. Go to your Dashboard > Preferences tab > Disable Google Consent Mode.