Triggering from a referrer with a query string | Community
Skip to main content
Level 3
December 7, 2016
Question

Triggering from a referrer with a query string

  • December 7, 2016
  • 2 replies
  • 2880 views

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?

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

2 replies

Josh_Hill13
Level 10
December 7, 2016

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
December 7, 2016

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.

Level 2
March 16, 2017

Hi Sanford,

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

SanfordWhiteman
Level 10
March 16, 2017

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.