Skip to main content
Act-On Software

Capturing Referrer and Search Terms

AUDIENCE: Administrators, Marketing Users

  • Define the form system fields that are captured with every form submission
  • Outline the necessary steps to capture referrer and search terms in form submissions

Whenever a form is submitted, the following information is automatically captured to help you gain additional information about your visitors:

  • _REFERRER – This is the raw referring URL that brought a visitor to your form
  • _SEARCH – This is the search term used
  • _CAMPAIGN – If you choose to generate multiple public URLs to track unique traffic sources to your form, the _CAMPAIGN field will display the Campaign name assigned to a particular URL. For example, you may tag the URL associated with your paid search campaign as 'Adwords.' This value would then show in the _CAMPAIGN field.

If you are using the Push Signups to Salesforce setting in your form, which allows registrations to be pushed immediately to Salesforce, you can also pass the Referring URL, search terms, and Campaign name to Salesforce with the following steps:

  1. Create a new form or edit an existing form
  2. Insert a Hidden Field.
  3. In the Field Name column, enter the name of the custom field in Salesforce where you would like to capture the referring URL. (You will want to enter the display name of your Salesforce field, rather than the ID.) In the Field Value field, type {{_REFERRER}}.
  4. Repeat the step above to create a hidden field to capture the search terms, using the hidden field value
    UndefinedNameError: reference to undefined name '_SEARCH' (click for details)
        at (Product_Features/Content/Forms/Collecting_Form_Submissions/07_Capturing_Referrer_and_Search_Terms), /content/body/ol/li[4]/strong[1]/span, line 1, column 1
    , and create a hidden field to capture the Campaign name using the hidden field value {{_CAMPAIGN}}.
  5. Click Next twice.
  6. Click Save.

Referring sites and search terms associated with each form and landing page visit are also available as part of your overall Website Visitor Tracking report.  


  • Was this article helpful?

Have a question about this topic?

Ask the community!