Access dataLayer variable GFTrackLabel
-
Hi Ronald,
I’ve got the plugin working well with GTM and Analytics to create a goal based on form submission. Currently, I have multiple triggers by page path for 6 separate forms on different pages across the site. I’ve got a single event tag which is associated with the multiple triggers. The event label is currently set to a static value but for it to work for all the forms I need to pull in a variable.
I can see via GTM preview there is a data layer called GFTrackLabel which is coming via your plugin. However, if I set the GTM variable to that value using version 2 I’m getting the variable undefined under gtm.formSubmit yet it shows for GFTrackEvent. Preview also shows under tags/variables Label is undefined.
My question is how can I get this value from the dataLayer to fire? My last resort is to set up separate tags for each form submission than with a static label but ideally, it would be good to have a single tag with multiple triggers with a dynamic label value.
Any advice greatly appreciated.
Cheers, Sahus
- The topic ‘Access dataLayer variable GFTrackLabel’ is closed to new replies.