Difference Referrer Constraint & Web Page | Community
Skip to main content
New Participant
May 20, 2021
Solved

Difference Referrer Constraint & Web Page

  • May 20, 2021
  • 1 reply
  • 2682 views

Hi, when should I use "Web Page" and when should I use the "Referrer" Constraint?

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

This isn't correct, Nitin.

 

Within the context of a Filled Out Form activity, the Referrer constraint is the page the form was on. It is not the page prior to that page.

 

You're thinking of the JS document.referrer/HTTP Referer: header. But that value indicates the page that led to the document. That is, the pageview that happened directly before the current Visit Web Page activity.

 

The referrer of a form fillout — like the referrer of an image or any other sub-resource on the page — is the current main document.

The correct way to identify the page an embedded form was on is to use the Referrer constraint.

 

I wrote about referrers at Here’s why your “Autofill from Referrer Parameter” setup stopped working.

 

1 reply

Nitin_Sharma1-2
New Participant
May 20, 2021

Hi Maria,

 

You can use "Referrer" if you want to check lead coming from a particular referral page or previous page. (EDIT: this is only true for Visit Web Page, not for Filled Out Form.)

 

Web Page helps you select the same page where your form exists like you have used the same form at different places but you are looking for form submission on XYZ page then you will select the XYZ page in "Web Page".

 

Let me know if this answers your question.

Thanks,Nitin Sharma
SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 20, 2021

This isn't correct, Nitin.

 

Within the context of a Filled Out Form activity, the Referrer constraint is the page the form was on. It is not the page prior to that page.

 

You're thinking of the JS document.referrer/HTTP Referer: header. But that value indicates the page that led to the document. That is, the pageview that happened directly before the current Visit Web Page activity.

 

The referrer of a form fillout — like the referrer of an image or any other sub-resource on the page — is the current main document.

The correct way to identify the page an embedded form was on is to use the Referrer constraint.

 

I wrote about referrers at Here’s why your “Autofill from Referrer Parameter” setup stopped working.