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.

Sending campaign variable to a for and from a form

  1. Hi,
    I have a campaign running which send the users to the gravity from.
    When the user submits the form I would like to know if the user came from my campaign page or from an other place.
    If he came from the campaign I would like to also send a string like this one:

    'http://adserver.adtech.de/pcsale/3.0/1141/0/0/0/BeaconId=9063;rettype=img;subnid=1;SalesValue=1.00;custom1=registration;custom2=<%=request("phone")%>'

    Thanks
    Dan

    Posted 13 years ago on Monday January 31, 2011 | Permalink
  2. Hi Dan,

    Here is a start on this from a related support email exchange:

    I think the simplest way to handle this is to populate the current URL as a parameter on that link. For example, instead of the linking to "http://yoururl.com/formpage/" it would link to "http://yoururl.com/formpage/?referrer=http://yoururl.com/currentpage/".

    Then on your Gravity Form, you can set up a hidden field and specify the dynamic population parameter to "referrer". So now the URL is pulled from the query string and populated into the form.

    Last step is pasting this little snippet into your functions.php file making the changes specified in the comments:

    http://pastie.org/1494357

    Let me know how far you get with this and I can provide some assistance with any questions you have.

    Posted 13 years ago on Monday January 31, 2011 | Permalink
  3. Thank you David.
    I'll give it a try and update.

    Dan

    Posted 13 years ago on Monday January 31, 2011 | Permalink