给出有效载荷:
v=1
&tid=UA-REDACTED
&ds=web
&cid=REDACTED
&uid=15844
&uip=REDACTED
&ua=Mozilla%2f5.0+(Windows+NT+10.0%3b+Win64%3b+x64)+AppleWebKit%2f537.36+(KHTML%2c+like+Gecko)+Chrome%2f68.0.3440.106+Safari%2f537.36
&ul=en-gb
&dp=%2f
&dh=www.devserver.com
&t=transaction
&ti=TestTxn8TI
&tr=105
&tt=10
&ts=5
&cu=EUR
&ds=web
&pr1id=testsku
&pr1nm=test%20product%20description
&pr1ca=hardware
&pr1pr=100
&pr1qt=1
&pr2id=testsku2
&pr2nm=another%20description
&pr2ca=hardware
&pr2pr=20
&pr2qt=2
&pa=purchase
它正在正确地衡量交易:
但是没有相关的产品数据。如何获取要显示的产品数据?
答案 0 :(得分:0)
在我看来,您是在将电子商务的热门歌曲与增强型电子商务的热门歌曲混在一起。
根据Enhanced Ecommerce Tracking的Measurement Protocol文档:
重要提示:增强型电子商务参数必须与现有匹配(例如综合浏览量,事件)一起发送,但不能与电子商务交易或商品匹配类型一起发送。
话虽如此,要继续发送Ecommerce Tracking下的匹配:
触发交易匹配
v=1
&tid=UA-XXXXX-Y
&cid=555
&t=transaction
&ti=TestTxn8TI
&tr=105
&ts=5
&tt=10
&cu=EUR
交易中每个产品的触发项目点击
v=1
&tid=UA-XXXXX-Y
&cid=555
&t=item
&ti=testsku
&in=test%20product%20description
&ip=100
&iq=1
&iv=hardware
&cu=EUR
v=1
&tid=UA-XXXXX-Y
&cid=555
&t=item
&ti=testsku2
&in=another%20description
&ip=20
&iq=2
&iv=hardware
&cu=EUR
如果您有兴趣在“增强型电子商务跟踪”下发送匹配,只需将“匹配类型”从transaction
更改为pageview
,例如:
v=1
&tid=UA-XXXXX-Y
&cid=555
&t=pageview
&dh=www.devserver.com
&dp=%2f
&ds=web
&uid=15844
&uip=REDACTED
&ua=Mozilla%2f5.0+(Windows+NT+10.0%3b+Win64%3b+x64)+AppleWebKit%2f537.36+(KHTML%2c+like+Gecko)+Chrome%2f68.0.3440.106+Safari%2f537.36
&ul=en-gb
&ti=TestTxn8TI
&tr=105
&tt=10
&ts=5
&cu=EUR
&pa=purchase
&pr1id=testsku
&pr1nm=test%20product%20description
&pr1ca=hardware
&pr1pr=100
&pr1qt=1
&pr2id=testsku2
&pr2nm=another%20description
&pr2ca=hardware
&pr2pr=20
&pr2qt=2
希望有帮助!