Capture Referrer, Search, and Campaign from Form Submissions

  • Updated

Great marketers are always testing different channels to measure a campaign's effectiveness for an intended audience. As you use Act-On Forms to do things like generating leads for your sales team, you may have questions about your Form submissions, like "How did this contact find our Form?". Tracking this can help attribute revenue to specific marketing efforts and show the true value of your campaigns.

When a contact submits an Act-On Form, Act-On automatically collects this data, including Referrer URL, Search term, and Campaign name. You can use these fields for segmentation and reporting in Act-On. You can also send this data to a third party such as your CRM, a Zapier webhook, or an external Form post.

Act-On can only capture these details if the contact clicks on a link with the referrer URL parameters and submits the Form immediately. If the contact moves away from the Form or accesses the site via another route then Act-On cannot capture these values in the Form.

Data Fields that Track Sources

These fields are collected and stored in your Form Submission List. Your Website Prospector report also includes the referring sites and search terms associated with each Form and landing page. 

Field Name Field Description
_REFERRER_ The raw URL used to refer a visitor to your Form
_SEARCH_ The search term used by the visitor
_CAMPAIGN_

The campaign name assigned to a particular URL

If you use an ActOn Landing Page to host your Form, you can generate multiple public URLs to track unique traffic sources to your Form. When you do this, the _CAMPAIGN_ field will display a value distinguishing campaigns by their associated URL.

For example, creating a URL named "Adwords" will populate the _CAMPAIGN_ field with that value when a contact accesses the landing page from that URL.

Sending Visitor Information with Form Post Data

Suppose your Form is sending leads to your CRM, or you are sending the data externally in some other way (e.g. Zapier webhook, or an external Form post). You can also pass the Referring URL, search terms, and Campaign name by updating your Form to include hidden fields.

First, you will need to set up your CRM or external Form to accept the new fields:

  • If the Form data is going to your CRM, you will need to identify existing fields or create new custom fields, for each Form data field you want to capture. Ask your CRM Administrator for assistance.
  • If the Form data is going to an external Form, that Form will need each field to capture the data as well.

Once that is done, set up your Act-On Form to send the values:

  1. Create a new Form or edit an existing Form.
  2. Insert a Hidden Field  
  3. Enter a Field Name and Column Name to capture data.
    • You can use "referrer", "search", "campaign", or other field names that make sense to you and match the data fields in your CRM / Form / Zapier webhook / etc.
  4. In the Static Value field, enter the variable for the field you are collecting:
    • To capture Referrer: {{_REFERRER}}
    • To capture Search: {{_SEARCH}}
    • To capture Campaign: {{_CAMPAIGN}}
  5. Repeat to create a new hidden field for each field you want to capture.
    • To capture all three fields, create three hidden fields. See the example below.
  6. Click Save.
  7. Test your Form to make sure data is collected as expected.

mceclip0.png

Was this article helpful?

Have more questions? Submit a request