When using the Google Tag Manager destination, it ...
# support
l
When using the Google Tag Manager destination, it is supposed to send all track events into the datalayer, right? Then in GTM you would be able to setup a custom event using the name of the track event to trigger an action as I understand? This doesn't work right now for, which I why I'm asking.
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.
q
What issue you are facing? Are you able to get the events in GTM?
l
No, the problem is that none of the track events seem to be reaching the GTM datalayer. Thus, I'm unable to setup the triggers I want.
q
How are you initialiazing Rudderstack on your pages? For GTM, a page call is necessary before track and it is by default included in
ruddernalytics.load()
. So Google Tag Manager will load on any page where the RudderStack snippet is initialized, and
rudderanalytics.page
is called. After this track call will work. Can you check if you have implemented it. You can read the docs here https://www.rudderstack.com/docs/destinations/streaming-destinations/google-tag-manager/#connection-settings