SOLVED

UTM parameters not populating into utm fields

Go to solution
Anonymous
Not applicable

We're having a consistent issue where a record will enter our database from a URL that has UTM parameters within the link. However, those UTM parameters do not populate from the referrer into the UTM fields (utm_medium, utm_ source, etc.). I've scanned the community and have not seen anyone discuss the same issue (< if you have, please point me in that direction).

For example, a lead would enter our database from this referrer: https://tripactions.com/?utm_source=google&utm_medium=sem&device=t&matchtype=b&keyword=business%20tr...

but the fields are empty:

Screen Shot 2018-06-11 at 10.14.06 AM.png

This happens for multiple sources, both within Marketo hosted pages as well as external ads: paid search, paid social, our unsubscribe landing page, webinar landing pages, etc.

An outside resource brought the idea that the lead could have deleted the part of the URL that has UTM parameters within it in an attempt to untrack themselves, however this is not the case as the original referrer and the referrer url have the full link with utm parameters in it.

To try to fix this originally, we added code on our forms a while back that could capture UTM parameters for about a day in case something was dropping them on the backend. This would ensure the utm parameters would persist from page to page as a record flipped throughout various web pages. To do so we added cookied fields ft_utm_medium, ft_utm_source, etc. that would hold the value then populate the real utm fields.

In addition to this fix, I have a workflow running within our Global Lead Source program that looks for records that have utm parameters within the original referrer and reads the UTMs to correctly attribute the record. But this catch does not populate the utm fields.

We're eager to find the source of this issue and a fix. Has anyone seen this before? Does anyone think a reasonable fix is to create a smart campaign that finds anyone with utm parameters in the original referrer and has a flow step that populates the utm fields?

Thanks for the help!

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Code that properly avoids the race condition between the form load and the cookie set will be fine. It's not difficult, once you understand the problem.

I don't usually add the form fields to the form (in Form Editor) at all, rather setting them using the Forms API addHiddenFields method to allow for more granular logic (for example, using cookie values or current values depending on detailed priority levels and different field names).

However, using the standard Hidden type in Form Editor is fine as long as the code to set cookies works.

View solution in original post

31 REPLIES 31