简体   繁体   中英

Google Analytics eCommerce data with payment gateway callback

We use WorldPay as our payment gateway and we've specified the callback URL to be myurl.com/payment.php, however worldpay doesn't actually redirect to this URL, it passes some parameters to it, ie, whether the payment was successful, how much for, etc and then displays the result through a worldpay server.

What I want to do is implement Google Analytics eCommerce tracking (instructions found here: http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html ). But this requires javascript which isn't enabled on the worldpay server.

I could do an immediate meta refresh to myurl.com/analytics.php which displays, aesthetically the same screen, but is actually on our server, so the JS will work.

The question is, how do I pass the cartID, if i'm using a meta refresh?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM