There's a FREE ticket to Marketo Summit for the first (helpful) responder :0
Your images won't load but I hope this will help:
I recently had to solve this exact issue at Yesware and wrote an open source library which will do it for you.
Firstly, it's important to understand how UTM parameters work when using Google Analytics. UTM parameters apply to a single visit (session) only. If a user clicks on a link which is tagged, that session will be associated with the UTM parameters. E.g. ?utm_source=adroll&utm_medium=display will place that session into the Display channel within Google Analytics. If the user fills out a form during that session, you'll want to define that as a goal with in GA and you'll be able to see the conversion rate of that channel. If the user doesn't convert and then comes back to your site, you won't want to reuse any previous UTM parameters as they won't be correct.
The previous version of the GA tracking code would save these for you in a cookie named _utmz, but the current version no longer does this.
When a user visits your site with UTM parameters in the URL, you'll want to save these into a cookie which expires at the same time as the GA session, which by default is after 30 minutes of inactivity. If at any time in the session new UTM parameters on the URL are detected, then the previous values should be overwritten as GA has started a new session at this point.
When a user fills out a form (becomes known), you'll want to fire a GA event which is setup as a Goal in GA and also pass the saved cookie values to Marketo.
I've created a library to do the first piece: https://github.com/Yesware/last-campaign
On every page of your site, you would just include the script and call "lastCampaign()", this will save the UTM parameters into a session cookie.
I hope this is helpful.
Do you have anytime to chat on the phone this week for 20 minutes?
Also, are you interested in the free Marketo summit pass?
On Mon, Mar 21, 2016 at 5:09 PM, Luke Bussey <firstname.lastname@example.org>
Sure, I'd be happy to chat. Just drop me an email - it should be on my profile.