MA
(@gasparnemes)
Hi There,
Thanks for your comments. You can setup the plugin in the CMS -> Settings -> GDPR Cookie. In the general settings, you can setup the branding, and other elements. To add the Google Analytics, you can enable the “3rd Party Cookies” tab but selecting the “Turn” radio value to “ON”. At the bottom of the “3rd Party Cookies” tab you’ll find 3 sections to add scripts. First will be added to the <head> section before the <body> tag, the middle one will be added after the <body> tag and the last on before the </body> closing tag (footer).
You can get your Tracking code from your Google Analytics account, read more about how to get the tracking code: https://support.google.com/analytics/answer/1008080?hl=en
You you’ll get a script like this, where the GA_TRACKING_ID is your property ID:
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_TRACKING_ID');
</script>
Once you have the script with the replaced GA_TRACKING_ID, you can add it to the first script section which will be added to the <head> section of your website. The field name is: The below script will be added to the page HEAD section if user enables this cookie.
Save the options, and test the implementation.
I hope this helps.