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
- In the Form Builder, select Add Element on the left.
- Go to Widgets at the top.
- Search and select Get Referrer.
Once added to your form, the widget will start collecting referrer URLs which you can check 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.
Send Comment:
2 Comments:
More than a year ago
Same issue, how can this display the full URL not just the root domain?
More than a year ago
how can I get the full url here, so including url parameters? thanks