• Resolved b1026q9

    (@b1026q9)


    I have installed Google Tag Manager for WordPress to track enhanced e-commerce data.

    On the Complianz backend, I have selected

    Do you compile statistics of this website?
    >> Yes, and Google Tag Manager fires this script

    and on the next page, I have selected
    Do you want to ask consent for statistics?
    >> Yes

    But analytics is tracking regardless the consent is made or not.
    What should I do?

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

    (@jarnovos)

    Hi @b1026q9,

    Please follow the implementation instructions for GTM4WP provided in this article: https://complianz.io/google-tag-manager-for-wordpress-plugin-gtm4wp-set-up/

    Hope it helps!
    Kind regards,
    Jarno

    Thread Starter b1026q9

    (@b1026q9)

    So I have followed the instruction and have set up the triggers.

    cmplz_event_marketing
    cmplz_event_statistics

    These two I have as triggers for my GA4 tag.
    However, when I check in the preview mode of Tag Manager, GA4 tag seems to be fired when banner appears.
    That’s when
    API Call
    dataLayer.push({event: “cmplz_event_statistics”, …})
    this happens.
    Also when
    API Call
    dataLayer.push({event: “cmplz_event_marketing”, …})
    happens.

    But once
    dataLayer.push({event: “cmplz_event_preferences”, …})
    this call is made, then GA4 tag is not fired.

    How can I make sure that tag is not fired unless consent button clicked?

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @b1026q9,

    You have set these triggers directly in GTM?

    Ass shown here -> https://snipboard.io/Z4Tiwz.jpg

    Or another way?

    regards Aert

    Thread Starter b1026q9

    (@b1026q9)

    Yes I did directly.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hello @b1026q9,

    If you have set these tags to only fire on the mentioned events (cmplz_event_statistics, etc), these should only fire when consent for that category has been obtained. If you had already visited the site before and consented to those categories, revisiting the site with those preferences registered would cause these events to be fired directly.

    Could you check if the behavior persists when viewing your site in a fresh Incognito window, to check if these tags are being fired without any prior consent when doing so?

    In this case, it would be most useful to us if we could see the site in question, so we can also look into the current behavior.

    Kind regards,
    Jarno

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Tag Manager for WordPress with Complianz’ is closed to new replies.