What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Is there a way to save the website referrer?

    Asked by Mark  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
    JotForm Support

    Answered by aubreybourke 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 by Mark  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
    JotForm Support

    Answered by Welvin 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 by Safefood360 on July 21, 2017 at 05:55 AM
  • Profile Image

    Answered by Mark  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
    JotForm Support

    Answered by Kevin_G 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.