14 Replies Latest reply on Sep 9, 2016 11:23 AM by Sanford Whiteman

    UTM vs Marketo Cookie: Need Clarification

      I am trying to capture lead source information using hidden fields on Marketo 2.0 forms on Marketo landing pages. I have thought about using UTM parameters, but my concern with this is that if someone navigates away from the conversion page or comes back later with a new session these parameters will be lost.

       

      Does anyone know if Marketo automatically cookies this information with forms 2.0 so I could use cookies as the value source and then specify the parameter name, thereby solving for these concerns? If so, how long does the Marketo cookie store this information?

       

      What type of information is available on the Marketo cookie anyway?

       

      Is there a good resource I can review for this?

        • Re: UTM vs Marketo Cookie: Need Clarification
          Tim McMinn

          What I had my dev team build out was a combination of UTM and Munchkin where we capture UTM to source leads with hidden form fields, but will place the UTM in cookie as well. We hold this data for a "session" as defined by Google general "session" definition as to match our Google Analytics.

           

          We also input referral URL into this cookie to which also passes through the hidden form fields upon lead conversion. I find this to be more accurate than Marketo's referral out of the box solution.

           

          Pretty sure this wasn't done automatically with forms 2.0 and munchkin, but I can ask my developer later this week.

          • Re: UTM vs Marketo Cookie: Need Clarification
            Sanford Whiteman

            Grant, Marketo will not automatically copy form field data into a cookie. (Of course, if you set the source of a hidden field to be a cookie, then by definition you also have a copy of the same data as a cookie.)  You can persist the data yourself if you want, but it will not happen unless you take steps (using the Forms 2.0 JavaScript API) to save it.

             

            In fact, Marketo will not use a cookie at all unless you also load Munchkin (not required for Forms 2.0 to operate). When used, the _mkto_trk cookie is meant to be opaque.  It does not store any data that can be directly read, but rather connects your browsing history to a Marketo lead record.

            • Re: UTM vs Marketo Cookie: Need Clarification
              Iryna Zhuravel

              Hi Grant

               

              I did something similar recently, so I'll add my 5 cents:

               

              - Munchkin does not write data like utm parameters into somebody's cookies; however, Marketo Forms can pick up utm data from cookies and populate hidden fields with those values

              - Adding utms into cookies should be done by your webdevelopers, we did it on external webpages where our forms are embedded, but it should be also possible to do on marketo landing pages through JS (I personally never did that on Marketo lp's, but see no reason why it wouldn't work)

              - Make sure they use persistent cookie and give it a long enough time to live, it depends on how long your campaign is running, but I make mine live at least for a month or two. Again this depends on your needs, using session cookies might also be just fine. I prefer to store the info for sometime, in case people come back to our website in a couple of days

              - To capture those utm values go to your form -> Hidden Field -> Autofill: Edit -> Get value from - select "Cookie value" and make sure to specify the name of the utm parameter you want the data to be captured from, e.g. utm_source, utm_medium etc

              That's it, you should be good to go!

               

              A few things to remember:

              - if you want to track who clicked on your tracked link but didn't submit the form, use a trigger/filter Webpage is "www.example.com" and a constraint Query string "iryna-utm-campaign"; anything coming after "?" Marketo will not see as a part of the url, but as a query string value

              - you still might loose some data because of people clearing their cache or using adblockers in their browsers

              - sometimes people might come from a tracked page A, wonder around and then fill out a form on page B, so lets say you were running adwords for both page A and page B, then in some rare cases you would get someone with utm_campaign=pageA getting into the Page B campaign; it is also pretty good result as you got a conversion, just something to keep in mind

               

              Hope it helps

               

              *Original comment was edited to correct an inaccuracy pointed out by Sanford Whiteman below.