Skip to main content
Level 6
Nov 23, 2021 8:41 PM UTC
Solved

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

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Nov 23, 2021 9:02 PM UTC
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.

3 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Nov 23, 2021 9:02 PM UTC
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.
Translate
JeffSm6Author
Level 6
Dec 11, 2021 9:31 PM UTC

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.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Dec 11, 2021 9:50 PM UTC
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.
Translate