Re: UTM params on form submission

Gunpreet_Kaur1
Level 3

Is there a way to submit utm param values as hidden values on form submission from original referral url, without using javascript? I'm doing below(image) but not catching anything on form submission.

Thank you for your help!utm.PNG

17 REPLIES 17
Kristina_Wrigh1
Level 1

We had the same problem recently when we moved to using a universal form structure (i.e., using the same form ID across multiple pieces of content), but we were able to successfully use hidden fields for URL Parameter on our forms (we do not use JS)

pastedImage_0.png

Here's how we have the smart campaign set up to listen for the form fill, and determine which program to assign success based on the UTM data captured from the hidden fields.

pastedImage_2.png

Hope this helps!

Grégoire_Miche2
Level 10

+1 on Dan on this. The original UTMs when the person lands on your web site can only be captured without JS if the Marketo form is on that same first navigation page.

If you want to get the UTM values to persist through the web session and be captured on the second or following page, you will need to store them in cookies or local storage and capture the values from there.

-Greg

Gunpreet_Kaur1
Level 3

Thanks Greg.

The munchkin code does not track that in the original referral? I thought it would capture the first touch url there.

Our developer is not aboard with using js(citing newer browser policies around tracking) and says Marketo is storing and we should use that than dropping our own cookie.

SanfordWhiteman
Level 10 - Community Moderator

The munchkin code does not track that in the original referral? I thought it would capture the first touch url there.

The Original Referrer is stored on the lead. It isn't stored in the browser (for the obvious reason that the current session may still be anonymous and couldn't possibly know what the value might be once the anonymous session is merged with an already-known lead).

Our developer is not aboard with using js(citing newer browser policies around tracking)

This objection makes no sense. Munchkin already uses JS + cookies for tracking. Adding a persistence layer (and often many such libraries) is normal behavior for a modern website and if the developer doesn't understand that, they should get out of the way.

Gunpreet_Kaur1
Level 3

Finally, we are implementing MarTech/UTM-Tracking at master · yanirclsr/MarTech · GitHub and on testing, the lt fields are not populating on form submission. On forms, I have Form Pre-fill: Enabled for all ft fields-

pastedImage_2.png

On all lt fields, Form Pre-fill: Disabled-

pastedImage_3.png

Am I missing something?

Dan_Stevens_
Level 10 - Champion Alumni

Do the values show up when you open Developer Tools under session storage?:

pastedImage_1.png

Gunpreet_Kaur1
Level 3

Sorry, I was too quick to respond earlier, it shows up under 'Cookies' not 'Session Storage'

Gunpreet_Kaur1
Level 3

Yes for the first touch but not last touch. Also, I am confused about last touch logic, is the last touch updated on second form submission? As on first-time form submission, both ft and lt are same. I assumed on second-time form submission it would update the lt fields.

Dan_Stevens_
Level 10 - Champion Alumni

Whatever UTM values are contained in the URL are carried through from page to page during the entire session (and available to populate the hidden form fields).  After the session, the values are no longer available.  

SanfordWhiteman
Level 10 - Community Moderator

No idea, I don't use that library but have my own.

Gunpreet_Kaur1
Level 3

Ok, Thanks. 

Gunpreet_Kaur1
Level 3

Appreciate your input Sanford Whiteman

Dan_Stevens_
Level 10 - Champion Alumni

"Get Value" should be "URL Parameter" - not "Referral Parameter".

pastedImage_1.png

Dan_Stevens_
Level 10 - Champion Alumni

Sorry, read your question too fast.  I don't think this is possible without JS.  Seems like most are turning to this code here: MarTech/UTM-Tracking at master · yanirclsr/MarTech · GitHub​ or https://romanoffconsultants.com/solutions/

Gunpreet_Kaur1
Level 3

Thank you Dan, looks like we will have to implement that js.

Josh_Hill13
Level 10 - Champion Alumni

did you structure your utm and url correctly?

I think Get Value has a diff option there.

Gunpreet_Kaur1
Level 3

URL is structured like: https://xyz.com/test/marketo/?utm_source=bing&utm_medium=cpc and renders like that