How to Capture the Referrer URL

July 10, 2025

Jotform makes it easy to track where users accessed your form from with the Referrer URL widget. This tool automatically captures the web address someone was on before they opened your form. It’s perfect for monitoring traffic sources, campaign performance, or how embedded forms are being used.

Let’s say you’ve embedded the same form on a few different landing pages or shared it through various partner sites. With the Referrer URL widget, you can see exactly which page brought each user to your form. It’s a handy way to figure out which source is driving the most engagement or conversions.

Adding the Referrer Widget

Whether you’re creating a new form or updating an existing one, you can add and set up the Get Referrer widget in a few easy steps. Here’s how to do it:

  1. In Form Builder, click on Add Element on the left side of the page.
Click Add Element in the Form Builder in Jotform
  1. Now, in the Form Elements menu, under the Widgets tab, search for Get Referrer and click on it to add it to your form, and you’re all set.
Add the Get Referrer widget from the Widgets tab in Jotform

Once you add the widget, it’s automatically saved and ready to capture the referring web address. You’ll be able to view this info right in your Submissions Table. Our guide on How to View Forms Submissions has more details about that. You can also take a look at this demo form to see how it works in action.

Usage Considerations

Sometimes, the Get Referrer widget might not show the full referrer details when someone fills out your form. That’s because it depends on the webpage’s header to pull this info—and in some cases, headers are blocked or limited due to privacy settings. Some browsers or servers with strict privacy rules can prevent the widget from getting that information, which may lead to missing or incomplete data.

To help the widget capture referrer information more accurately, you can add this script to the <head> section of the page where your form is embedded:

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

Another option is to use tools like Google Tag Manager, Google Analytics, or other tracking platforms that offer more consistent data about referrers and traffic. Want to capture the exact page where your form is embedded? Check out our guide on Capture the Page URL where the Form is Embedded.

Academy Logo

Introduction to Form Building

Explore Widgets

Go to course :Explore Widgets
lesson-2 - image
Contact Support

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

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