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

    Getting the Google Adwords GCLID even if my site visitors navigates away to any page on my site

    Asked by ezchoicefinancial on May 19, 2016 at 12:00 AM

    Hi there , i have a wordpress website and i have been using jotform premium for many years.


    We use google adwords and as you know when a visitor clicks on a google adwords ad through google search a unique link is generated by google adwords with gclid and utm parameters here is an example of a link: https://ezchoicefinancial.com/?url=https%3A%2F%2Fezchoicefinancial.com%2F&utm_source=google&utm_medium=cpc&utm_campaign&utm_content=90817762880&utm_site&utm_term=fix%20bad%20credit&gclid=CjwKEAjwpfC5BRCT1sKW2qzwqE0SJABkKFKRUZOJNVYWSt08Qyt-EJTq1nPA0m9cuBr2hdaoFCP8AhoCwBLw_wctestB


    i have the "get page url widget" on my forms however once the visitor navigates away to any page on the site from the destination ads homepage of my website all the utm parameters and gclid disappear due to wordpress php session ( wordpress is notoriously known for that)

    is there a way i can get at least the gclid to import in my pages this way no matter what page the visitor goes on my site and complete the form the gclid will get imported. it helps me to know which leads are google adwords.


    in the best case scenario it would be nice for my jotform get page url to pick up all the link paratmeter no matter how many pages the visitor navigates to ( ?url=https%3A%2F%2Fezchoicefinancial.com%2F&utm_source=google&utm_medium=cpc&utm_campaign&utm_content=90817762880&utm_site&utm_term=fix%20bad%20credit&gclid=CjwKEAjwpfC5BRCT1sKW2qzwqE0SJABkKFKRUZOJNVYWSt08Qyt-EJTq1nPA0m9cuBr2hdaoFCP8AhoCwBLw_wctestB )


    I have had in the past on a different site a similar yet different issue and i received help from Ben after long echange . here is the link of that thread : https://www.jotform.com/answers/452893-JotForm-ability-to-import-special-utm-parameters-sub-ids-from-links#77

    i don't think it directly applies 


    Page URL:

  • Profile Image
    JotForm Support

    Answered by Chriistian on May 19, 2016 at 02:26 AM

    If I understand correctly, you want to store the unique link is generated by google adwords, so that when a user clicks on a google adwords ad, even if they navigate to other pages on your site, the url parameters will not disappear?

    I believe Google has a guide for your requirement.  You can check out the code provided by google under the "Enable your website and lead tracking system" section. Here's the link to that guide: https://support.google.com/adwords/answer/2998031?hl=en


  • Profile Image

    Answered by ezchoicefinancial on May 19, 2016 at 10:22 AM

    thank you i saw this previously it felt too complicated code wise. ill take a look. i was hoping you guys had an easier solution 

  • Profile Image
    JotForm Support

    Answered by Welvin on May 19, 2016 at 12:11 PM

    Please try this with our Get Referrer widget: http://widgets.jotform.com/widget/get_referrer. This widget has been restructured to track down the URL where the form has been first accessed, not where it's submitted.