Support » Plugin: Event Tracking for Gravity Forms » Access dataLayer variable GFTrackLabel

  • Resolved sahuspilwal

    (@sahuspilwal)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • If it helps anyone I was able to resolve this by using a Lookup Table variable inside Google Tag Manager using a key/pair value of the gform_id i.e. gform_1 as the key and the pair value from the event label from the Gravity Forms submission tracking settings.

    So for the general contact form the key/pair is:

    gform_1 > General

    This is working perfectly using a single tag with multiple triggers using the lookup table. Hope this helps!

    Cheers, Sas

    Resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.