Re: Triggering from a referrer with a query string

Autumn_Mahoney1
Level 3

Triggering from a referrer with a query string

Hi.

I am trying to track the next action from an entry page with a query string.

Scenario: prospect visits page with a query string and value ?utm_campaign=sample. If they click from here to a next page and fills out a form, I am trying to capture that they came from that previous page.

I set up a Fills out Form trigger, form name is any, referrer contains "sample". But it is not working.

My guess is that Referrer does not consider query string text. Is there a way around this without writing code into the cookie?

4 REPLIES 4
Josh_Hill13
Level 10 - Champion Alumni

Re: Triggering from a referrer with a query string

There are some threads on the javascript you would need to pass the data to the form later on in their visit.

SanfordWhiteman
Level 10 - Community Moderator

Re: Triggering from a referrer with a query string

My guess is that Referrer does not consider query string text. Is there a way around this without writing code into the cookie?

The Referrer you're looking at in a flow does ​include the full URL. But you're confusing the proprietary concept of the "Referrer" of the embedded form -- that is, the page hosting the form -- with the true Referrer of the main document (i.e. the previous full pageview).

Add a hidden field to your form that AutoFills from a "Referrer Parameter" and it will be grabbing from the main document's true Referrer.

And yes, this is confusing.

Anh_Ly
Level 2

Re: Triggering from a referrer with a query string

Hi Sanford,

Can you provide a little more guidance on how to do this?

SanfordWhiteman
Level 10 - Community Moderator

Re: Triggering from a referrer with a query string

When you add a field of type Hidden, there's always an Autofill link on the right-hand side in Form Editor. That's where you choose the source of the value.