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.

Gravity Forms overriding PayPal auto return & PDT

  1. miromitov
    Member

    Hi All

    I want to use PayPal auto return and PDT to integrate with conversion & e-commerce tracking in Google Analytics.

    Gravity Forms sets the cbt, return, and rm query parameters when it sends users to PayPal. I understand that when the return param is set (i.e. a return url), this overrides the PayPal auto return feature, and so also stops PDT from working.

    I've tried editing the GF PayPal plugin to prevent cbt, return and rm from being set in the PayPal url, but PayPal is still not auto-returning after payment.

    Can anyone help? Thanks!

    Kevin

    Posted 12 years ago on Tuesday April 17, 2012 | Permalink
  2. miromitov
    Member

    Can anyone shed any light on this?

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  3. What happens after a successful payment goes through? I believe right now hitting a continue button takes users back to the site after payment.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  4. miromitov
    Member

    Hi Rob - thanks for your reply.

    Yep, when payment completes, you see a confirmation on PayPal. The continue button appears on this screen, with the label as specified in Gravity Forms. If you click the button, you return to the URL that GF sets automatically: your form page, with a paypal return anchor specified.

    PayPal provides an auto-return feature, so that customers are automatically brought back to your site when the payment completes - they don't have to click a button. This is better for web analytics conversion tracking (and incidentally for the service that we're selling).

    However, even if you've got auto-return enabled in PayPal, it is overridden when you explicitly set a return URL with your PayPal 'button'. Gravity Forms is doing this, and doesn't provide an option to switch it off.

    Any ideas?

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  5. miromitov
    Member

    Sorry just realised perhaps I didn't answer the right question.

    Having edited the GF PayPal plugin to prevent cbt, return and rm from being set in the PayPal url, you still stay on PayPal, just without a continue button at all.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  6. I think you can accomplish what you are trying to do without having to change Gravity Form's core (which will cause you trouble when upgrading).
    1- Set your form confirmation to "Redirect" and enter the URL that will do your conversion tracking.
    2- In PayPal, enable the Auto-return.

    Providing the return_url to PayPal will override the "Return Url" configured with PayPal, but it won't override the "Auto-return" setting.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink