Cookie variable | Community
Skip to main content
June 29, 2016
Question

Cookie variable

  • June 29, 2016
  • 2 replies
  • 2187 views

see this article - firstdigital.co.nz/blog/2015/07/22/retrieve-traffic-sources-data-without-google-analytics-cookies/

we're trying to receive source/keyword data etc into a hidden marketo cookie form field, but our developer is having trouble setting up this code on our website - does marketo offer anything similar?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SanfordWhiteman
Level 10
June 29, 2016

That code is pretty janky (I wouldn't use it) but you aren't specifying what isn't working. It should fundamentally do what it advertises.

Marketo does not have an equivalent function built-in. Marketo Forms can, however, populate hidden fields from the cookies set by this function: any form field set to type 'Hidden' can be Autofilled from a cookie.

June 29, 2016

I'm told that Tag Manager doesn't allow this Tag to be published: -

Would you be able to assist with some code that would work? I'm getting told I should have chosen Hubspot instead of Marketo because it has better ROI tracking for ad words - how best can I solve this problem using what I believe is the better tool?

SanfordWhiteman
Level 10
June 29, 2016

Interesting, the GTM question may be one of code quality. I guess the easiest thing to do is to touch up that code to get it working in GTM. We have a comprehensive JS library built for this stuff but I'm not allowed to circulate it.... yet.

If you contact me offline (sandy@teknkl.com) we can get it working and come back to update the thread.

August 4, 2016

any update?

SanfordWhiteman
Level 10
August 4, 2016

I'm still bound to not publish anything, but you might hear from someone else soon.