Passing Google Analytics tags as text into a jotform field

  • jdt3901
    Asked on December 6, 2016 at 10:50 AM

    We have payment and salesforce integrations on a jotform, and we use Google Analytics to build google tags into our form URL, using Google's URL builder. 

    I would like to pass the tags as text into hidden fields on the form, so when the leads are sent to salesforce, we have them in fields on the lead record. Is this possible? Just to be clear, my question is whether I can pass the value of the GA tags into hidden jotform fields without having to alter the URL that Google's URL builder is giving me.

    I know how to pass a URL to a hidden field. Here's an example:

    Here I'm passing "ye1" to a hidden field.

    https://form.jotform.com/63403671578158?input51=ye1 

    Google tags have standard names: "utm_campaign" is one of them. Is it possible to get Jotform to read "utm_campaign" as a hidden field name and fill in whatever value follows it?

  • Welvin Support Team Lead
    Replied on December 6, 2016 at 12:37 PM

    Please try using the textbox field and hide it through its properties. Then, change its field name. Check if this works. 

    https://www.jotform.com/help/146-How-to-find-field-IDs-and-names 

    Note, Jotform has a prefix in the field names so you might want to configure that in your own builder. If you cannot get this to work then I'm afraid this is not possible.

    Another workaround would be to get the source codes and change it's field name there: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form. You have to embed the source codes after since there is no way you can import it back in the form builder.

    Let us know if you need any further assistance.

  • jdt3901
    Replied on December 6, 2016 at 3:41 PM

    I think what you suggested is working. Thanks, Welvin.

  • Nik_C
    Replied on December 6, 2016 at 6:10 PM

    On behalf of my colleague, you're welcome!

    Do not hesitate to contact us if you have any further questions.

    Thank you!