Store Utm Vales

Anonymous
Not applicable

Store Utm Vales

All the pages on my website are tracked in Marketo, using Munchkin.

In a lot of the I receive utm values (utm_source, utm_medium), that I need to store in lead fields. I need to store in those fields the last utm values received.

I've read about having those fields mapped in form values, however that would only get the fields written in a "fill out the form" operation.

Any suggestion on how to record this information?

2 REPLIES 2
Grégoire_Miche2
Level 10

Re: Store Utm Vales

Hi Carlos,

Forms are just the way to make the values enter in Marketo. But then, In Marketo, you can create a set of fields to store:

  • The first set of UTMs ever received for a lead (you can capture it and store it in cookies until the lead converts and fills out a form). This will enable you "a posteriori" to reattach the lead to the very first program that triggered a visit, even if this visit was not a conversion.
  • The conversion set (the set of UTM for the web session during which the first form was filled out)
  • The most recent set (from the last time a lead filled out a form). Might be updated many times

You will also combine with field blocking so that first and conversion cannot be modified once captured. Depending on the effort you are willing/able to allocate to this, the First and Conversion by be the same.

At the end of the day, what is really key is to define what kind of attribution model you want to put in place.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Re: Store Utm Vales

I've read about having those fields mapped in form values, however that would only get the fields written in a "fill out the form" operation.

Any suggestion on how to record this information?

There are at least 3 scalable ways to do this that don't involve the lead filling out a form.

  1. Post a Marketo form in the background using the Forms 2.0 JS API.  In reality this is just an Ajax database update (there is no visible form).
  2. Use the Munchkin API Associate Lead method. This gives you more control than [1] since you have to generate a hash key on your server in order for the update to be processed.  (In a default config, [1] is a sort of an "end-around" the security of [2] for fields that are empty.)
  3. Use my trick here to log one value at a time using the Munchkin API Visit Web Page method.  This method is quicker than [1] or [2] for updating a single lead field (which could include multiple UTM values, depending on where it's going to be read), but for multiple lead fields you'd need to run [3] multiple times, so [1] or [2] might be preferable.