Referrer parameters in autofill | Community
Skip to main content
Bonni_Graham_Go
Level 2
March 24, 2015
Question

Referrer parameters in autofill

  • March 24, 2015
  • 2 replies
  • 1739 views
Hi folks! I'm hoping some kind soul out there can help me. I would like to be able to populate a hidden field on a form based on the page the visitor to our website came FROM. The help makes it clear that this is possible through autofill referrer parameter; however, the help does not give a good example of what they syntax should be for that value. Can anyone give me a real-world example of what that value might look like?
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
March 25, 2015
The referrer (document.referrer) value is a full URL, for example "https://community.marketo.com/MarketoDiscussionHome?tabType=Recent". 

Perhaps I'm not sure what you're asking about, but you can use a URL-formatted text field or a basic text field to store that value on the lead. Since it's just a hidden field it might as well be plain text.
March 25, 2015
Hi Bonni,

If you have built landing pages with the forms in marketo which the visitor will have to go through first to end up on your website you can use the URL builder to help you create the parameter value


Once you're in there it will give the hidden url parameter to fill in with whatever you like  and make it as long as you like. It will then give the complete url to use. Avoid using any special characters like !"%$&, and to space out the words you should use  _ or -. An example would be: marketo_community_2015-03.

I really hope this helps