GA4收入统计异常:多数purchase事件未被记录的原因排查
GA4仅记录少量或无purchase事件,与服务器订单数不符
- 已尝试所有已知方法修复GA4追踪问题,该问题已持续一个多月仍未解决
- 网站用户以SAR货币完成购买,需要GA4准确统计收入
- 成功订单通过以下代码触发purchase事件:
if(( typeof gtag !== 'undefined')){ gtag("event", "purchase", { transaction_id: "{{$order->paymentid}}", affiliation: "My Store", value: +('{{$theTotal}}'.replace(',','')), tax: {{$order->vat}}, shipping: {{$theShipping}}, currency: "{{$order->currency}}", coupon: "{{$order->coupon_code}}", items: temp }); }
代码渲染正常,但GA4后台仅显示0或1笔收入,而服务器日志显示当天有9笔成功订单,已附上相关截图。补充:已提供页面head标签及GA4后台设置截图。
请问为何GA4仅记录少量或无purchase事件?
内容的提问来源于stack exchange,提问作者Abeer Sul
相关产品推荐
相关产品推荐

