电子商务匹配未显示在Google Analytics(分析)评估协议中 [英] Ecommerce hits not showing in Google Analytics Measurement Protocol

查看:84
本文介绍了电子商务匹配未显示在Google Analytics(分析)评估协议中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我在我的网站上接受PayPal付款,所以我正在尝试使用Measurement Protocol在服务器端发送交易明细.使用PayPal付款的访问者通常不会返回我的网站来查看订单确认页面,因此依靠IPN是记录交易的一种更可靠的方法.

Because I accept PayPal payments on my website, I'm trying to use the Measurement Protocol to send transaction details server-side. Visitors who use PayPal to pay often don't return to my website to view the order confirmation page, so relying on IPN instead is a more reliable way of recording transactions.

我已经可以使用Measurement Protocol成功记录事件匹配,但是尽管我的电子商务(普通ecom,未增强)匹配可以通过

I've been able to successfully record Event hits with the Measurement Protocol, but although my Ecommerce (plain ecom, not enhanced) hits validate through the debugger, they are not showing up in any of my GA reports, even a day or two after the transaction is completed. Yes, I've verified that Ecommerce (but not enhanced ecommerce) is enabled in Analytics.

示例请求,其中删除了tid和cid(在实际调用中它们是正确的):

Example requests, with tid and cid redacted (they are correct in the actual calls):

  1. 电子商务交易:

https://www.google-analytics.com/collect?v=1&t=transaction&tid=UA-XXXXXXXX-1&cid=XXXXXXXX&ti=20D95105S1786425X&tr=50.00&cu=USD&ds=web

  1. 电子商务项目(总是正好为1;这些项目是捐赠,并且我的网站不允许在1次交易中进行多次捐赠):

https://www.google-analytics.com/debug/collect?v=1&t=item&tid=UA-XXXXXXXX-1&cid=XXXXXXXX&ti=20D95105S1786425X&in=giveNow&ip=50.00&iq=1&iv=Onetime&cu=USD&ds=web

  1. 事件命中,它确实起作用:

https://www.google-analytics.com/debug/collect?v=1&t=event&tid=UA-XXXXXXXX-1&cid=XXXXXXXX&ec=donate&ea=Onetime&el=giveNow&ev=50.00&ta=StMU&ds=web

所有三个匹配都被连续发送,而事件匹配是最后一次调用.欢迎提供进一步调试的任何建议!

All three hits are sent successively, with the Event hit being the last call. Any suggestions for further debugging are welcome!

推荐答案

最终解决了它:我已经调试了很长时间,所以实际上我将所有调用都发送给调试器(

Finally solved it: I'd been debugging for so long that I was actually sending all the calls to the debugger (https://www.google-analytics.com/debug/collect) instead of the Production URL (https://www.google-analytics.com/collect).

这篇关于电子商务匹配未显示在Google Analytics(分析)评估协议中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆