How to Capture Referrer URL

Last Update: April 22, 2017

What is Referrer URL? 

It's basically the address of the webpage where a person clicked a link that sent them to your page. 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.


MichelleFait (August 25, 2015 at 04:26 PM)

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);}

View Answer

FeedbackForMe (February 23, 2016 at 02:14 PM)

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?

View Answer

gth (April 05, 2017 at 10:11 AM)


Send Comment