Google Analytics and WorldPay - Tracking Sales/Conversions
-
Hi there,
I recently remember reading somewhere that tracking code could be used to monitor sales/conversions of eCommerce payments that went through WorldPay.
I've been looking around the web for news stories, forums, discussions, but all seem to be from 2007 - 2011; was just wondering if anyone knew any up-to-date info they could point me towards?
Thanks
-
The "idea" is still valid. You need a "Thank You" page that actually sends the transaction details to Analytics. Users must be redirected to that page after completing the payment, and I guess the return URL is just a variable you set while sending the order details to Worldpay (look into their docs for that: return url).
Then, in the "thank you" page you trace the order and create the analytics ecommerce call (with any programing language) depending on the version of Analytics you are using, it could be the ga (ga('require','ecommerce','ecommerce.js'); and then the rest of the transaction details) or the older _TrackTrans() (after the rest of the transaction details).
Hope that helps!