You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 02:25:27