简体   繁体   中英

Google Analytics Issue for Magento to PayPal

So, having discovered that customers are not returning to our website after making their PayPal payments, our Google Analytics reports are wonky as the landing page (success.phtml) which generates the order completion history/goal is never achieved.

Is there a PayPal APi callback to Magento which can generate the correct Google Analytics data? Is there a way to generate GA code at the PayPal end?

Any pointers appreciated!

Thanks, Joe.

a better question for you is why are your customers not reaching the success.phtml ?

Go to Website Payments under Profile on the PayPal website. Setup your return URL and enter the succes url there...

If your customers don't return because they close their browser before returning to the shop:

You could remove the script from success.phtml and add a serverside-call to GA using something like serversidegoogleanalytics but you'll have to implement this for all paymentmethods you are accepting... This serversidecall would be done in the success-action within the controller of the paypal module

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