简体   繁体   English

Magento到PayPal的Google Analytics(分析)问题

[英]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. 因此,在发现客户付款后不再返回我们的网站时,由于从未实现生成订单完成历史记录/目标的登录页面(success.phtml),因此我们的Google Analytics(分析)报告很奇怪。

Is there a PayPal APi callback to Magento which can generate the correct Google Analytics data? Magento是否存在PayPal APi回调,可以生成正确的Google Analytics(分析)数据? Is there a way to generate GA code at the PayPal end? 有没有办法在PayPal端生成GA代码?

Any pointers appreciated! 任何指针表示赞赏!

Thanks, Joe. 谢谢,乔。

a better question for you is why are your customers not reaching the success.phtml ? 对您来说更好的问题是,为什么您的客户没有达到success.phtml

Go to Website Payments under Profile on the PayPal website. 转到PayPal网站上“个人资料”下的“网站付款”。 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 你可以从success.phtml删除脚本并使用像一个serversidecall加入GA serversidegoogleanalytics但你必须要实现这个你接受所有paymentmethods ......这serversidecall将在内部成功的行动来完成贝宝模块的控制器

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

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