• Resolved dianastr

    (@dianastr)


    I am trying to implement Basic consent mode v2 in GTM. The necessary signals are sent, but a custon data layer event is also a needed to implement this feature. Is there any way in which we can send that event on every page with the consent parameters?

    Thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    Can you show me how you would usually do that and I can see what is possible?

    Thread Starter dianastr

    (@dianastr)

    The event would look something like this: https://prnt.sc/gxFmzy_pGRI1 It has to be set as a trigger for the “All pages” tags in order to fire only after they received consent.

    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    I would solve it like this:

    if (cacspMessages.cacspOptionGoogleConsentMode == ‘1’ && Cookies.get(CACSP_COOKIE_NAME)) {
    // Do your stuff
    }

    It checks if Consent Mode is active and if the cookie is set.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sending Data Layer Events’ is closed to new replies.