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.

User Tracking ID

  1. Dynamix
    Member

    Hi,
    I am intrested in buying a license of this great plugin, but I have one question before.
    Can I use Gravity Forms to read a user id from an url?
    To keep it more clear, I would like to explain the problem for which I need a solution.
    Some friends of mine like to send a newsletter to their costumers. If those customers are coming to my page they would come there with a special tracking code (something like http://www.domain.tl/?ref=xyz). I would like to track now this id and if they fill out the form, I would like to prepopulate a hidden form field with this id.
    Can Gravity Forms do this for me?

    Thank you for your help.
    Kind Regards

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  2. Yep, this is all the setup it would require: http://grab.by/agNg

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  3. Dynamix
    Member

    Thank you for your fast answer, but if I understood the screenshot correctly, this kind of form is grabbing only a variable. But where does it come from? If the website is called with the link (http://www.domain.tl/?ref=xyz) and then clicked a bit around inside the Website, the ?ref=xyz parameter will be gone. And if the form will be filled out much later, than the variable isnĀ“t there any more... Or does Gravity Forms cache suche variables somewhere (cookie, session?) else?

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  4. There are multiple ways to dynamically populate a field with Gravity Forms; however, if the variable is not present in the URL, that method will not work. Using a bit of custom code you could capture the query variable when the user first arrives at the site, store it in a $SESSION variable and then use the gform_field_value hook to retrieve the value from the $SESSION variable and populate the field.

    More info on dynamic population and the gform_field_value hook:

    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population
    http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  5. I have a client who wants me to send an email survey to their customer list of 2000 people. They will send me the list. I don't want to send each email individually as it will take too long. I plan to use EmailBot from Incansoft for this (if it will work, I am not sure how to create a unique URL for each of the 2000 people)

    The email will contain a hyperlink. I want to be able to track which respondents went to the link and filled out the anonymous online survey form. I don't want to ask for their email address in the form.

    I need to know who clicked on the links AND who filled out the surveys.

    My problem is how do I track which people fill out the survey form?

    I need to find a way to add a unique variable to each URL, so that each of the 2,000 people in the email list get assigned a unique URL, then I think I can track which ones fill out the form.

    Any advice on how to approach this problem using Gravity forms?

    Posted 9 years ago on Thursday July 14, 2011 | Permalink
  6. I'm not sure how you can add the unique variable to each URL, thats going to be the part you need to figure out as it's not something Gravity Forms is involved in as far as sending out the email to your mailing list.

    As far as passing this number to Gravity Forms so it's stored when they fill out the form, this is pretty simple.

    - Edit your form
    - Add a Hidden Field to your form
    - Edit the Hidden Field
    - Give it a field label of "Unique ID" or whatever you want to call it
    - Select the Advanced tab
    - Check the "Allow field to be populated dynamically" checkbox
    - Give it a parameter name, the parameter name is the query string name used to pass the value
    - Save your form

    Now to pass the value to this field you would pass it in the query string using the parameter you configured when editing the field.

    Ex.
    http://mydomain.com/my-page?parametername=value

    This would then populate the hidden field with the value that is passed. So now you would have that ID with the form entry.

    Posted 9 years ago on Thursday July 14, 2011 | Permalink
  7. Carl
    So if I have 2,000 people on my list do I have to go through setting this up 2000 times?

    Posted 9 years ago on Thursday July 14, 2011 | Permalink
  8. I am still not clear whether I have to go through those steps above for every unique URL, or is there a way to set it up once, can capture the query string from each of the 2,000 unique URLs I plan to create. Can you help me better understand how to set this up?

    Posted 9 years ago on Friday July 15, 2011 | Permalink
  9. I assumed you were going to use the same link and instead pass a unique ID via the query string. If you want to do unique URL's I have no clue how you are going to do that. Gravity Forms are embedded on a single page or post. So how would you have 1000's of unique URL's?

    The easiest thing to do would be to have a unique ID. Use the same URL. Pass the unique ID. Then capture that unique ID as a field value as I outlined above.

    Posted 9 years ago on Friday July 15, 2011 | Permalink
  10. Carl

    What do you mean by unique id? For example, I was thinking of using Google Analytics to create tags at the end of 2,000 urls, so each of them will be unique. Like so: http://3pl-survey.supplychainheros.com/?utm_source=supplychainheros&utm_medium=email&utm_campaign=2

    I add a unique number at the end of each URL.

    So how can I pass this unique id "2" into Gravity forms? I will have 2,000 unique ids.

    I would really appreciate hearing from you today!

    Posted 9 years ago on Monday July 18, 2011 | Permalink
  11. Carl

    Can I use the info section in the edit entries to track the unique urls. I see a field for embeded URL. It seems to track which URL the submission came from. Can this field be exported with the rest of the entry data?

    Dustin

    Posted 9 years ago on Monday July 18, 2011 | Permalink
  12. Carl
    Would this be the parameter ? utm_source=supplychainheros&utm_medium=email&utm_campaign=

    Dustin

    Posted 9 years ago on Monday July 18, 2011 | Permalink
  13. Ok, I figured it out, I used utm_campaign

    Posted 9 years ago on Monday July 18, 2011 | Permalink

This topic has been resolved and has been closed to new replies.