php – Google Analtyics在使用Measurment协议时未注册交易

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – Google Analtyics在使用Measurment协议时未注册交易脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试发送http请求来跟踪电子商务.

我得到了响应http_code = 200但是,我看不到任何事件或事务.

码:

$fields_string = '';
    $fields = array(
        'v' => 1,'tid' => "UA-xxxxxx-1",'cid' => $userid,'t' => 'transaction','ti' => $transaction_id,'tr' => $Transaction_revenue,'ts' => $Transaction_shipping,'tt' => $tax,'cu' =>'EUR'
    );

击中:

可能是什么问题呢?

非常感谢.

解决方法

是什么让你觉得它不起作用.我在 debug collect点击你的命中进行验证.在我看来很好.

{
  "hITParsingResult": [ {
    "valid": true,"parserMessage": [ ],"hit": "/debug/collect?v=1\u0026t=event\u0026tid=UA-3731463-1\u0026cid=555\u0026uid=123\u0026ti=21\u0026tr=20\u0026tt=5\u0026ts=2\u0026pa=purchase\u0026ec=Checkout\u0026ea=Purchase"
  } ],"parserMessage": [ {
    "messageTyPE": "INFO","description": "Found 1 hit in the request."
  } ]
}

是否检查了实时报告,您是否仔细检查了您的Tid?

{
  "hitParsingResult": [ {
    "valid": true,"hit": "/debug/collect?v=1\u0026tid=UA-3731463-1\u0026cid=123\u0026t=transaction\u0026ti=124\u0026tr=1\u0026ts=1\u0026tt=1\u0026cu=EUR"
  } ],"description": "Found 1 hit in the request."
  } ]
}

也可能是您在第二个中发送的值.

脚本宝典总结

以上是脚本宝典为你收集整理的php – Google Analtyics在使用Measurment协议时未注册交易全部内容,希望文章能够帮你解决php – Google Analtyics在使用Measurment协议时未注册交易所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。