PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Capturing field from query string

  1. I am having trouble capturing a field in a query string. I am using Google Analytics to generate this url http://domain.com/?utm_source=web&utm_content=id&utm_medium=email&utm_campaign=DE

    The "id" will be a range different numbers or letters.

    Using hidden field, I created the field name UniqueID. In the advanced tab, i picked HTTP Referer URL and as parameter i put in utm_content for the value that I want to capture. I also checked the box to allow the field to be dynamically populated. However, when I tried to export the field UniqueID, I only get the whole url from above instead of the value "id" which I want to capture.

    Here is a topic to similar problem but I tried that and it didn't work.
    http://www.gravityhelp.com/forums/topic/user-tracking-id

    Thanks for the help!

    Posted 10 years ago on Friday October 14, 2011 | Permalink
  2. You don't want to capture the referer, just populate the field dynamically, as you have already done with the parameter. Don't use the Default Value or "insert variable" drop down, and I think you will be fine.

    Posted 10 years ago on Friday October 14, 2011 | Permalink
  3. Hi Chris,

    Thanks for your response, I have tried the suggestion that you gave and left the Default Value blank and only put in utm_content as parameter name. I also checked the box to Allow field to be populated dynamically. When I exported the UniqueID field, however it was blank. Any ideas on this or am I doing something wrong?

    Thanks

    Posted 10 years ago on Friday October 14, 2011 | Permalink
  4. Something interesting that I noticed. The landing page does not connect to gravity form directly. Basically, the landing page contains links to the form and as soon as I arrive at the landing page, the Google Analytics url disappeared. I will then proceed to pick a link to the form which does not have a google analystics tag. Using this, gravity form would not capture the fields and the value of the paramenter.

    However, if the google analytics url connects directly to the gravity form, the method explained by Chris works perfectly.

    So, I want to see if there is a way to capture/export the field values without first landing on the page that contains gravity form? It seems like gravity form knows that the referrer URL contains the value that I am looking for, just that I cannot separate all the unnecessary stuff that I don't need.

    Posted 10 years ago on Friday October 14, 2011 | Permalink
  5. Sounds like the landing page needs to capture the query string, and send that along to the page with the form in it. You'll have to 'catch' the query string on the landing page, then pass that information along to the Gravity Form.

    Can you just have the Gravity Form on the landing page? It makes things easier.

    If not, you will need to do some work in your template for the landing page, to capture the query string.

    Posted 10 years ago on Sunday October 16, 2011 | Permalink