"
So If I set my utm parameters to pull from cookie values, the utm codes from the first page they visit (has a tracking URL) will be captured even if they navigate to other pages and fill out a different form on another page? "
Yes, except you would need to set your
form fields to pull from cookie values. You can create a persistent cookie that travels wtih the lead across the site and even across multiple visits (i.e., if they come back in three weeks you know their original source).
"
And if I use URL parameter, the utm codes will only be captured if they fill out the form on the page they first clicked on (assuming they don't choose to navigate to another page)? If they do navigate to another page, then the utm tracking is lost for good?"
Most likely, yes. Your form fields only grab the parameters if they are actually present in the URL, and this URL will change when they navigate to another page.
You may get lucky and capture the data in the "original referrer" field, which is a system field auto-populated by Marketo, and then you could potentially reverse engineer the parameters from that. But this is hit and miss in my experience. Better to make it as bullet proof as possible!
"
If I use the cookie method, what javascript will I need to add? "
I don't have a javascript snippet at hand, unfortunately. In the past when I've done it as an in-house Marketer, I used a wordpress plugin to grab the parameters and put them into cookies, and we had custom parameters (not UTMs). If you are on wordpress check out a plugin called Cookie Monster as it may solve your problem.
Now that I'm on the agency side, I know this is something we deploy for clients but I don't have the code on hand.
If you get stuck drop me a line, justin@perkuto.com.
Justin Norris |
Perkuto