How to capture hidden field UTMs while showing HTML for returning visitors | Community
Skip to main content
New Participant
November 23, 2021
Solved

How to capture hidden field UTMs while showing HTML for returning visitors

  • November 23, 2021
  • 1 reply
  • 3161 views

When we hide forms for returning visitors, we lose the ability to capture UTM parameters in the hidden fields. This creates discrepancies in conversions when we look at Marketo numbers versus Google Analytics. Is there a way around this so that the UTM parameters still get picked up?

Best answer by SanfordWhiteman
Use the KV HTML Auto-fill code here:

https://codepen.io/figureone/pen/jOWVZMg

You need the FormsPlus library from the HTML pane plus the JS in the JS pane.

It's actually better than the standard Auto-fill as you can fill from mutiple sources. I recommend switching to it exclusively.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
November 23, 2021
Use the KV HTML Auto-fill code here:

https://codepen.io/figureone/pen/jOWVZMg

You need the FormsPlus library from the HTML pane plus the JS in the JS pane.

It's actually better than the standard Auto-fill as you can fill from mutiple sources. I recommend switching to it exclusively.
JeffSm6Author
New Participant
December 11, 2021

Hi Sanford,

 

We implemented this as instructed but are seeing something unusual. The below screenshot shows the fields as "mkto_UTM_Source" and "mkto_UTM_Medium", but there should only be one "_" between mkto and UTM. The second underscore after "UTM" isn't part of the field name, and I suspect is the reason why the source and medium values aren't actually being added to the fields. 

I mentioned this to the developer that is assisting with this, thinking he had mistakenly added that extra underscore, but he sent me these screenshots showing he hadn't and wondered if somehow they were getting added.  

 Does this make sense, and do you know where those might be coming from? The parameters don't come through on our test leads, and this is what I assumed was the culprit.

SanfordWhiteman
New Participant
December 11, 2021
Marketo SOAP field names (the names used on forms) can never have spaces. Make sure you’re using the SOAP name — you can export all your fields and look in the SOAP column.