Re: Adding Javascript to turn URL parameters into cookies for AdWords tracking

Anonymous
Not applicable

Adding Javascript to turn URL parameters into cookies for AdWords tracking

The article on adding url parameters to track PCC information here is very helpful in setting up the querystring and hidden fields in Marketo forms. In particular, setting up these 4 values and their url parameters for tracking:
Value (URL Parameter)
Campaign Source (utm_source)
Campaign Medium (utm_medium)
Campaign Term (utm_term)
CampaignID (utm_campaign)

However, when it comes to adding the javascript to the template of the landing pages, to store this information as cookies to be read by any other form with the hidden fields, it links to this page. This page, while giving javascript to read url parameters and store them as cookies, is set up to read completely different parameters. (The javascript in the page given is set up to read Search Engine, Search Term, and if a PPC keyword, that keyword.)

Is there any page that actually shows the Javascript set up to read the specific url parameters given in the AdWords article? If not, can someone point out the changes needed to be made to the javascript on the second page? I know it's a matter of changing out and adding a few extra parameters, but my brain can't seem to put it together.

Thanks in advance!
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Adding Javascript to turn URL parameters into cookies for AdWords tracking

HI Patrick,

Why don't you post the code that you have in place now and we can make some edits.
Anonymous
Not applicable

Re: Adding Javascript to turn URL parameters into cookies for AdWords tracking

Hi Patrick - did you sort this?  I have the exact same question...
Anonymous
Not applicable

Re: Adding Javascript to turn URL parameters into cookies for AdWords tracking

Hi Patrick -- I have the same question and can't for the life of me make sense of this.

Anyone else with thoughts, please chime in!