Any way to pass program/form name in hidden field or in form attribute? | Community
Skip to main content
Damon_Tribble2
New Participant
July 6, 2020
Question

Any way to pass program/form name in hidden field or in form attribute?

  • July 6, 2020
  • 1 reply
  • 1721 views

I have set up Google Analytics to fire an event every time a Marketo form is viewed or submitted on our site. Right now, the event passes the four digit form ID in the event label. I would like to be able to pass the program name the form is associated with so it will be easier to tell what program the form is associated with when viewing the data in GA. 

 

Is there any way to pass the program name associated with the form in a hidden field or other form attribute which I could then include in my GA event? Thanks in advance for any help you can offer.

Damon

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
July 6, 2020

Is this an embedded form, or a named form on a Marketo-hosted LP?

Damon_Tribble2
New Participant
July 15, 2020

It's an embedded form...

SanfordWhiteman
New Participant
July 15, 2020

Unfortunately, on a non-Marketo page, getting the {{Program.Name}} attribute — though it is present in the form descriptor — is a pretty tall order. You have to customize the way you load the form using JS (similar to my blog post about "speeding Marketo form loads," if you search for it).