简体   繁体   English

带有付款网关回调的Google Analytics(分析)电子商务数据

[英]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. 我们使用WorldPay作为付款网关,并且已将回调URL指定为myurl.com/payment.php,但是worldpay实际上并未重定向到该URL,而是向其传递了一些参数,即,付款是否成功,金额多少等,然后通过worldpay服务器显示结果。

What I want to do is implement Google Analytics eCommerce tracking (instructions found here: http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html ). 我想做的就是实施Google Analytics(分析)电子商务跟踪(可在此处找到说明: http : //code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html )。 But this requires javascript which isn't enabled on the worldpay server. 但这需要在worldpay服务器上未启用的javascript。

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. 我可以立即对myurl.com/analytics.php进行元刷新,从外观上看,它与屏幕相同,但实际上在我们的服务器上,因此JS可以正常工作。

The question is, how do I pass the cartID, if i'm using a meta refresh? 问题是,如果使用元刷新,如何传递cartID?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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