How to push Intercept answers to GTM dataLayer | XM Community
Skip to main content

Hi everyone,
I'm unsuccessfully trying to push the answers of an intercept to the GTM dataLayer 😔
I'd need help to learn how to save the answers into variables and have them sent to the dataLayer when the user submits the form.
Could anyone give me some advice to accomplish that task?
Thanks in advance!

icgartner
If you still need, I believe the reverse process is easy to do, but if you need your survey answers to update the datalayer you can visit the below pages. Including the push method JS after the question is answered can do the job for you. Also, important is to know your USER ID and declare it correctly.
GTM Guide: dataLayer.push with examples - Analytics Mania
The data layer | Google Tag Manager for Web | Google Developers
Hope it helps!


Leave a Reply