- MarkAsked on July 20, 2017 at 11:12 AM
Is there a simple way to save the website referrer (not the page was submitted on) into a hidden field in the form so that this data is then saved as part of the form submission?
I visit the website via an organic method, when i submit my jotform I want the refferer data (organic etc) to be save as a field so I can see this in the jot from submission in the admin area.
I am currently tracking referrer with Google Analytics but I want to save this data to the form so it can be synced with the CRM.
- MarkAnswered on July 20, 2017 at 12:01 PM
No - as my question states I dont want to know the referrer page the form was sent from, I want to know the HTTP_SERVER['REFERRER'] value, e.g. the source of the visitor, PPC, Organic, Direct etc.
- JotForm SupportWelvinAnswered on July 20, 2017 at 02:34 PM
The Get Referrer widget does exactly the thing you want. You may consider trying that and let us know if there are issues.
- Safefood360Answered on July 21, 2017 at 05:55 AM
- MarkAnswered on July 21, 2017 at 06:00 AM
As I previously stated and as per the plugin documentation this does not do what I need.
This plugin simply records the page from which the person was on previous to the form submission.
What I need is to know how the person came to the domain itself. This would be the server referrer.
Do you know how this can be accomplished?
- JotForm SupportKevin_GAnswered on July 21, 2017 at 10:41 AM
The widget shared previously will do exactly what you described based on this documentation about the HTTP_REFERER variable: https://www.electrictoolbox.com/php-http-referer-variable/
The widget will show as value the URL that sent the user to the form, for example, if you've embedded your form in "Page 1" of your website, the page's URL will be passed as referrer.
You may also get the source code of your form and manually add the PHP code.