• Resolved Markus Wiesenhofer

    (@markusfroehlich)


    Hello, Thomas,
    Is it possible that your plugin can be integrated with Boarlabs cookies?

    Thank you and best regard
    Markus

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Do you mean the few non-personal data oriented cookies of GTM4WP itself?

    mniggemann

    (@mniggemann)

    Hi Thomas,
    same problem here: when using a cookie banner like Borlabs, the banner plugin handles the Google tag manager code. So how can I continue to use your plugin without a) loading GTM before the user has agreed to its use and b) having duplicate GTM code in my HTML?

    Besten Gru?,
    -martin

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Martin,

    I would like to better understand your case as well.
    Why do you need to block the loading your GTM container itself instead of blocking your tags inside your container before user consent?

    Hallo @markusfroehlich and @mniggemann,

    I had the same question, and found this video from Borlabs:

    Short answer: The solution is “script blocking” in Borlabs.
    Create a script blocker in Borlabs, copy the unblocking-code and paste additional to your “Google Tag Manager”-Cookie Opt-In-Code.

    Long/Detailed answer: watch following video:

    https://www.youtube.com/watch?v=cziOqw9Fg38

    Best Regards
    Bernhard

    Thread Starter Markus Wiesenhofer

    (@markusfroehlich)

    Hello @bernhardstemp,
    i solved this problem better ??

    Just add the following code in your theme/functions.php and lets integrate the Google Tag Code by Borlabs Cookies.

    // Integrate the Google Tag Manager via the Borlabs cookie plugin
    add_filter('gtm4wp_get_the_gtm_tag', '__return_empty_string');

    This code prevent a duplicate gtm tag in the head of your website.

    Everything works fine by my site.

    Best regards
    Markus

    Thanks @markusfroehlich – that’s exactly what I was searching for!

    Now I can use Borlabs for the placement of the GTM code without having the code placed twice, and still use data layers that are inserted by the gtm4wp plugin, e.g. for enhanced e-commerce tracking.

    @duracelltomi Would be great if you could implement an option for that in the plugin settings, like it is there for the noscript part only at the moment.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    If you set the placement option to “Off” then GTM4WP will not add the GTM container code but add all data layer variable.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Compatibility to Borlabs Cookies’ is closed to new replies.