电子商务命中未显示在 Google Analytics 测量协议中 [英] Ecommerce hits not showing in Google Analytics Measurement Protocol

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

问题描述

因为我在我的网站上接受 PayPal 付款,所以我尝试使用测量协议在服务器端发送交易详细信息.使用 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,未增强)命中通过 调试器,它们没有出现在我的任何 GA 报告中,即使在交易完成后一两天也是如此.是的,我已经确认在 Google Analytics(分析)中启用了电子商务(但未启用增强型电子商务).

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=XXXXXXXXX&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-XXXXXXXXX-1&cid=XXXXXXXXX&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-XXXXXXXXX-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!

推荐答案

终于解决了:我调试了这么久以至于我实际上将所有调用都发送到了调试器 (https://www.google-analytics.com/debug/collect) 而不是生产 URL (https://www.google-analytics.com/collect).

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天全站免登陆