How to Capture the Referrer URL

November 3, 2024

A referrer URL is the web address of the page a user was on before reaching your page. Essentially, it tells you where your visitors are coming from. This information can help you understand your website traffic and optimize your marketing strategies.

To capture the referrer URL on your form

  1. In the Form Builder, select Add Element on the left.
An Add Element button in Jotform Form Builder
  1. Go to Widgets at the top.
  2. Search and select Get Referrer.
A Get Referrer widget in Jotform Form Builder

Once added to your form, the widget will start collecting referrer URLs which you can check in Jotform Tables.

A Referrer column in Jotform Tables

Usage Considerations

Every now and then, the Get Referrer widget might not show complete results when someone fills out a form. This happens because the widget gets its info from the webpage header, which can sometimes hold private details about the visitor. When web servers and browsers have strict privacy settings, they might block the widget’s access to this info.

A possible solution is to include the following code in your website’s <head> section where your form is embedded. The script opens up a post-message channel that listens for additional referrer information:

<script src="https://app-widgets.jotform.io/scripts/getUrlReferrer.js"></script>

Another solution is using additional tools like Google Tag Manager, Google Analytics, or other analytics platforms with better tracking capabilities.

See also: How to Capture the Page URL.

Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Jamie Larkin - Profile picture
  • bob - Profile picture