GTM Preview & Debug - Does it work with any of the implementation methods?
Hi,
We're working with Drupal.
We are already aware that the GTM Debug & Preview function does not work when the implementation follows https://support.cookiebot.com/hc/en-us/articles/360009192739
Quote Richard:
The reason for this is that you'll be referring to events that aren't known in Google Tag Manager, since they'll be pushed to the dataLayer outside of Google Tag Manager.
Since we cannot wait for a Cookiebot fix (problem seems to be existing for a long time now), we're investigating whether it would make sense to change our implementation approach.
Is there anyone here with experience using the GTM implementation guide here https://support.cookiebot.com/hc/en-us/articles/360003793854 , and could share some thoughts / insights? Does the GTM Debug & Preview function work if you implement Cookiebot directly via GTM?
This problem is now so severe that our 3rd party agency, responsible for the creation of new trackings, is refusing to work since it's not feasible for them without Debug & Preview.
Therefore, we're looking forward to all feedback we can get. Worst case, we will have to switch products I am afraid.
Thanks!
-
Hi Pilip,
Yes, that will work.
Using manual cookie blocking mode (adding tags manually to your scripts/cookies - in your case within GTM) allows you to use the GTM preview mode without any problems. In fact, this is still the de-facto solution most of our customers use and prefer, just because they already use a tagging system (GTM).
Alternative implementation guide: https://www.cookieinfo.net/en/knowledge-base/implementing-cookiebot-with-google-tag-manager/
Regards,
Ruud Falkena0 -
Hi Ruud,
thank you very much! Okay, I think we will then proceed with that approach.
This being said, going via GTM would mean we have to hand over the implementation to the 3rd party supplier. In the meantime, we have customized the overlay in many ways, as solutions required by our client. We have quite a bit of javascript modifications going on from our side to achieve the experience our client was looking for.
If we hand over the implementation, can we still manage the customization from our side, or do we need to hand this over to the 3rd party, too? We're talking about extensive styling changes as well as behavioral changes regarding pre-selections when users open advanced options.
I hope that via GTM, only the loading is managed, but the rest continues to be done via HTML/CSS etc. of the website itself.
Thanks,
Filip
0 -
Hi Filip,
Well that depends on your situation and how you've set up GTM.
The loading (triggering) is managed by GTM, including the loading of the cookies. So you need to make sure you have the triggering (eg Analytics) done by GTM so you can add an analytics tag. You won't use the script on the website.
Regards,
Ruud0 -
He Cookiebot script is inserted by means of GTM and as I noted before Google Tag Manager does not send or acquire statistics, it is more like a device that registers events kohls floor steamer, and executes scripts consistent with the ones occasions.
0 -
I'm additionally dealing with the identical problem please permit me recognise the way to make the Customized Cookie Consent Layer responsive page. Please proportion your perspectives on that topic. Thanks
0 -
Hi Patrick,
Thank you for the response!
Just to verify, should I add the data-cookieconsent='marketing' to the Google Tag Manager script like so:
<script data-cookieconsent='marketing'>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');
</script>0
Please sign in to leave a comment.
Comments
6 comments