What are some examples for when a Cookie Value will be empty when a lead fills out a form? | Community
Skip to main content
Danielle_Wong
Community Advisor
Community Advisor
January 29, 2018
Solved

What are some examples for when a Cookie Value will be empty when a lead fills out a form?

  • January 29, 2018
  • 1 reply
  • 6793 views

We have leads that are not capturing the cookie value. Is this a normal thing? If so, what are some examples of situations when this would happen?

Thank you!

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

I'd be looking for bugs in the code that writes the cookie in the first place.

For example, homegrown code may have a race condition so that on pages with Marketo forms, the cookie may be written either before or after the form is rendered, giving very different results. If your code doesn't understand the Forms 2.0 event model this can easily happen.

1 reply

SanfordWhiteman
Level 10
January 29, 2018

What do you mean by "the" cookie value exactly?

Do you mean a Hidden field that's set to AutoFill from a cookie? There's no case where the cookie provably exists where this is known to fail. Do you have more evidence/audit trail about what you're describing?

Danielle_Wong
Community Advisor
Community Advisor
January 30, 2018

The issue that sparked this question is: we have a hidden field on some of our forms that is supposed to capture the cookie value from our lead tracking code. However, these are coming in as the hidden field's default value "Null".  I'm not sure how to find an audit trail.

Danielle W.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 30, 2018

I'd be looking for bugs in the code that writes the cookie in the first place.

For example, homegrown code may have a race condition so that on pages with Marketo forms, the cookie may be written either before or after the form is rendered, giving very different results. If your code doesn't understand the Forms 2.0 event model this can easily happen.