JotForm User Guide / Advanced Features /

How to Capture Referrer URL

How to Capture Referrer URL

What is Referrer URL? 

It's basically the address of the webpage where a person clicked a link that sent them to your page where your form is embedded. In other words, it's the webpage that a person was on right before they landed on your page.

How to Capture Referrer URL?
Capturing the Referrer URL is super easy.  Follow these 2 simple steps.

1. While in the form builder, open the Form Elements panel on the left side

2. Go to Widgets tab and search Get Referrer then add this widget to your form


That's it!

Here's an example submission with referrer URL captured by the widget.

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:
Contact JotForm Support:

Send Comment


  • gth


  • FeedbackForMe

    Can questions have dynamic text? I don't want fields to be pre-populated, but rather want "referrer" above to customized. If this can be done, how do I do it?

  • MichelleFait

    I integrated this form with Mailchimp and I am trying to see how I can add tracking on my Mailchimp side to show that the subscriber came from Jotform. I set up the integration and tested but when I go to see the subscriber It says it came from API Generic. I tested the above Todo and it didn't function properly.

    This is my IFRAME CODE: Where do I add this code? $_SERVER['HTTP_REFERER'] or maybe I am missing a step?

    window.handleIFrameMessage = function(e) {var args =":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight" = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) { = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}