Hello :wave:. Is it possible to setup a Google Tag...
# support
n
Hello 👋. Is it possible to setup a Google Tag Manager (GTM) destination with a Web - JS source without Rudderstack adding the GTM SDK (
gtm.js
) to the client? We still want Rudderstack to forward events to our GTM container but we would like to add the GTM SDK ourselves.
✅ 1
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Ian, why does it matter if RudderStack adds the GTM SDK or you do it yourself. Since Google Tag Manager is a device mode destination, RudderStack just adds a layer on the UI which forwards the request to the GTM SDK. The GTM SDK then sends the data to the destination.
n
@shy-kite-21035 - I am in a tricky scenario where our integration with OneTrust is adding some unwanted class name to the
gtm.js
script tag. This only appears to be the case when we let Rudderstack render the GTM script. I have been able to reproduce a working solution when we disable the GTM destination in Rudderstack (stopping Rudderstack from injecting the GTM script into our page) and define the GTM script tag ourselves. I'm aware that this feels more like an issue in OneTrust but I am just exploring all potential fixes. If we can stop Rudderstack from injecting the script but keep forwarding requests into our GTM container, this feels like a viable option. 🙂
h
onetrust is the pits
😂 1
m
Yes but the sole purpose of the adding the destination is so that it can setup the GTM container. Can you try adding your One-Trust cookie categories to the GTM destination on the RudderStack dashboard.
n
Yeah, I agree. It makes sense what you are saying. I have found a solution in OneTrust for now which will resolve my issues. Thanks for your help. 👍
m
Thanks for the update :)