Collecting UTM data from a URL

  • Profile Image
    AJH89
    Asked on January 22, 2019 at 04:42 AM

    Hi.. 

    Is it possible to collect the utm parameters from a URL and have it available in a report? 

    For example, the source, medium, campaign and content data in this string

    ?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic

  • Profile Image
    Victoria_K
    Answered on January 22, 2019 at 05:28 AM

    Yes, this is possible. Just add text box fields in your form and name it exactly as the variables used. Then the values from URL will be automatically populated to the fields.

    utm_source

    utm_medium

    utm_campaign

    utm_content

    Example:

    Then you can hide the fields from public, just right click on the field and select 'Hide':

    20170610211413.png

    Collected data should be available in reports: How-to-Create-Form-Reports-in-JotForm

    Let us know if you need more help. 

  • Profile Image
    AJH89
    Answered on January 22, 2019 at 05:33 AM

    Thank you 

    How does the form know where to pull this information? Do we need to use the 'get referrer widget' too? 

  • Profile Image
    Victoria_K
    Answered on January 22, 2019 at 06:03 AM

    'Get Referrer' widget will only get the URL's which referred visitors to your form. If you want to capture utm parameters, you can add them to form links on different pages. 

    For example, you can add these parameters to form one one page: ?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic

    and change them to same form on another page. 

  • Profile Image
    AJH89
    Answered on January 22, 2019 at 06:28 AM

    Just so I'm clear.. 

    If I call a field 'utm_source' then in the report that column will include whatever that value is in the URL.

    So, it could be Twitter or Facebook

    Although, the parameters will not be be in a jotform url but the referring url

  • Profile Image
    Victoria_K
    Answered on January 22, 2019 at 07:47 AM

    Yes, this is correct. If you add fields of 'Short Text Entry' type to capture the data from URL, any value will be saved to the field and available in report. 

    Although, the parameters will not be be in a jotform url but the referring url

    If the form is embedded, you can add parameters to link of your web page, form should be populated also. You can test some times before hiding utm fields on the form. 

    If you are sharing form elsewhere, you can attach different parameters to every shared form link:

    Hope this helps! But, please get back to us if you need further assistance. 

  • Profile Image
    AJH89
    Answered on January 22, 2019 at 08:51 AM

    Thank you. 

    So if we had a form embedded on https://qualifications.pearson.com/en/forms/test.html and added the parameters to a linking URL

    https://qualifications.pearson.com/en/forms/test.html?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic

    The embedded form with fields for utm_source etc would be populated? 

    And all I would need to do is create short text fields to achieve this?

  • Profile Image
    ashwin_d
    Answered on January 22, 2019 at 10:23 AM

    Yes that  is correct. Please embed your form with default / script embed code to populate fields of embedded form. 

    The following guide should help you how to embed your form in webpage with default "Embed" code:  https://www.jotform.com/help/34-Adding-a-Form-to-a-Web-Page


  • Profile Image
    AJH89
    Answered on January 28, 2019 at 08:55 AM

    Hi.. 

    I've created two test pages to trial this but cannot get the option I require to work

    One page has the referring URL link which includes the utm parameters. The other has the destination jotform which is embedded and with fields to capture the utm information. 

    When I add these parameters (?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic) to a standard url for our site i.e.  https://qualifications.pearson.com/en/forms/test.html

    the utm data is not collected but when I use a link that includes the jotform url https://form.jotformeu.com/90273030986357?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic

    the utm data is collected. See submissions for https://form.jotformeu.com/90273030986357

    Why does this for the jotform version but not when using our page url? 

    Does this not work with embedded forms? 

    We are using an i-frame to display the form 


  • Profile Image
    ashwin_d
    Answered on January 28, 2019 at 09:37 AM

    I did check your webpage where you have embedded your form and found that you have used iFrame embed code.

    I would suggest you to please embed your form using its default embed code and see  if that  solves  your problem. Please use the following embed code in your webpage:

    <script type="text/javascript" src="https://form.jotform.com/jsform/50273554493963"></script>

    Hope  this helps.

    Do get back to us if you have any questions.

  • Profile Image
    AJH89
    Answered on January 28, 2019 at 10:06 AM

    Thanks for checking 

    In our CMS we are able to simply add the jotform URL to a component rather than insert code. 

  • Profile Image
    Victoria_K
    Answered on January 28, 2019 at 11:32 AM

    I think adding a populated link to a component is not an option, correct? 

    https://form.jotformeu.com/90273030986357?utm_source=twitter&utm_medium=social&utm_campaign=GBPRMA0119POWER&utm_content=organic 

    It seems that your CMS does not allow to populate iframes. Could you tell us what CMS is used so we checked for options?