-
How can I track form field values dynamically in GTM?
Hey, I’m trying to track what’s in a form after it’s been submitted using gtm. I started out with stuff like this “gtm.element.3.value”, which has a static ‘3’ index value. I’d like it to be dynamic though, so I don’t need to create a ton of variables. Do I really need to make a bunch of dataLayer variables for each index value like gtm.element.0.value, gtm.element.1.value, and so on? I’m just trying to streamline the process and avoid manually entering index values. Can that be done in GTM?
Log in to reply.