Is there a way to save the website referrer?

  • Profile Image
    Asked 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?

    For example.


    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.


    Thanks guys

  • Profile Image
    Answered on July 20, 2017 at 11:33 AM

    Yes you can use the Get Referrer widget:


    Please have a look at the instuctions here:

    How to Capture Referrer URL

  • Profile Image
    Answered 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.

  • Profile Image
    Answered 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. 

  • Profile Image
    Answered on July 21, 2017 at 05:55 AM
  • Profile Image
    Answered on July 21, 2017 at 06:00 AM

    Hi Welvin,

    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?

  • Profile Image
    Answered 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: 

    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.