• Hi, we’re trying to get Complianz working on our site with Google Analytics and Adsense, both currently managed by Google Site Kit.

    I first tried to set it up according to configuration #2 on https://complianz.io/configuring-google-site-kit/ so in the wizard under Statistics, I activated the Google Analytics option and checked the tree boxes below. On the next page Statistics – configuration, I selected No for required consent.

    Still, consent is asked in the cookie banner and I find in the page source this “empty” (no ID) snippet near the closing </body> tag:

    <script type="text/plain" data-service="google-analytics" async data-category="statistics" data-cmplz-src="https://www.googletagmanager.com/gtag/js?id="></script>

    Why is it there?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @ravanh,

    With the Jetpack integration enabled, consent for the Statistics category is required; which also applies to Google Analytics.

    To load both of them without obtaining consent with your current configuration, you will additionally have to disable the Jetpack integration under Complianz > Integrations > Plugins.

    Kind regards, Jarno

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi @jarnovos thanks, I’m not very concerned about the consent for statistics, just surprised about the suggestion that there is an option to switch that off (reply No on Statistics – configuration) while in practice that makes no difference…

    But what I’m more concerned about is the fact that our page source code is now carrying two Google Analytics (googletagmanager) tags, one with a analytics ID (added by Site Kit) in the header and one without in the footer (added by Complianz) :

    <script type="text/plain" data-service="google-analytics" async data-category="statistics" data-cmplz-src="https://www.googletagmanager.com/gtag/js?id="></script>

    How to get it down to only one googletagmanager script tag?

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @ravanh,

    I’ll investigate. It shouldn’t affect anything, but it should not be there.

    Our integration for SiteKit handles SiteKit tags, and skips Complianz added snippets. The latter doesn’t seem to work fully.

    I’ll get back to you, thanks,
    regards Aert

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @ravanh the integration removes the “configuration by complianz” field, but because it is default set to true, the plugin ignores that and adds it. I’ve added a simple check which only adds this if the gtag actually has been entered:
    https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/empty-gtag

    It will be merged in one of the coming releases. Thanks for reporting!

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Great news! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Two analytics script tags with Complianz + Google Site Kit’ is closed to new replies.