Hi Ed,
The link won't work.
-Greg
Thomas, did you ever figure out an approach for this? I too manage my web forms locally in my Drupal website, and pass submissions over to Marketo using Munchkin. I also would like to pre-fill these unassociated web forms with values from the cookie. Care to share where you ended your voyage on this?
I am sorry. I never worked this out. I got side tracked by other projects.
DJ, I don't think you're passing form data using Munchkin... Munchkin primarily tracks page views and clicks.
There are no values stored in the Munchkin cookie. This is a common misperception. The Munchkin cookie associates your browser activities with a new or preexisting lead. The Munchkin API associateLead method can be used to update fields on the associated lead (blind update, meaning Munchkin can't read the current value first) but there is no Munchkin method for reading fields directly from the lead. Note that the only way to use the Munchkin API to update fields is to generate a secret per-user hash on your server. If you you're not doing this, then you aren't using the Munchkin update API.
If your goal is to pull previously posted lead fields into subsequent page views, you have a couple of options. Easiest is to store those fields in a custom browser cookie or in LocalStorage, where they can be easily read later. Much more difficult is to securely and reliably read data from the Marketo database into your page. You'll need to hire a developer to implement this.
I need to do the same thing, any suggestions?
It's not a third-party cookie if it's set for the domain in the browser's location bar (or a parent domain). That's actually a first-party cookie.
Anyway, the answer is certainly yes. As long as the cookies share the same domain, then the Marketo form can be set to prefill hidden fields right from the cookie data. This is actually built-in functionality in the Forms 2.0 Editor: when you add a hidden field, you can tell it to read from data stored in a cookie. The expected use is to pass lead source info from page to page, but you can use it for anything.
If you want to reveal the hidden field after it gets populated from the cookie, you can use a technique like this.