Setting a data value based on the previous page before the person fills a form

Highlighted

Setting a data value based on the previous page before the person fills a form

Hi All,

So I want to set product and language/country data values in marketo. I have a landing page that is directed to from our main site and every link for contact sales goes to the same landing page.

The issue is that I want to set a user's language based on where they filled out a form. Our site is regionalized so that every form fill that comes from a page with "en-us" in the link is English and USA, if it is German and from Germany the sites that lead to our LP have "de-de". However I tried making a smart campaign triggered off of ANY form fill where the referrer contains "en-us" and to set that persons language to English but I don't think it is working. Again this is our main site the person is on before they hit "contact sales" and go to a marketo landing page.

Additionally I see it not working because I tried to do the same for product. All product pages have a contact sales link in them and their URL contains "product_name" so I tried to do the same for that to set the product name and route the person to the product campaign by setting that value but this isn't working either.

Any ideas on how to set data values based on the page someone was on before they got to a marketo landing page?

Thanks!

4 REPLIES 4
Highlighted
Level 10 - Community Moderator

Re: Setting a data value based on the previous page before the person fills a form

You don't use a Smart Campaign for this.

You add a Hidden field, click AutoFill, and set it to fill from a Referrer Parameter.

Highlighted

Re: Setting a data value based on the previous page before the person fills a form

Just to confirm Sanford the "referrer" in this case is our website page that directed them to the marketo LP correct? In marketo often times the referrer is the site they were at before visiting our web domain.

Highlighted

Re: Setting a data value based on the previous page before the person fills a form

Hi Biran,

Yes, this is correct.

-Greg

Highlighted
Level 10 - Community Moderator

Re: Setting a data value based on the previous page before the person fills a form

In marketo often times the referrer is the site they were at before visiting our web domain.

That's only true of the Original Referrer system field, which is stamped once.

When Auto-Filling form fields, the referrer params refer to the document.referrer value, that is, the only referrer the current browser session can access.

In Smart List constraints, the referrer means the page hosting the form, but that's only in the server-side context.