gpt4 book ai didi

google-analytics - 如何在谷歌分析电子商务跟踪中查看城市/州/国家?

转载 作者:行者123 更新时间:2023-12-03 15:48:56 27 4
gpt4 key购买 nike

我想使用 google analytice 电子商务来满足某些要求。
所以,我使用了以下来自谷歌的代码片段。

_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
'1234', // order ID - required
'Womens Apparel', // affiliation or store name
'28.28', // total - required
'1.29', // tax
'15.00', // shipping
'San Jose', // city
'California', // state or province
'USA' // country
]);
_gaq.push(['_addItem',
'1234', // order ID - necessary to associate item with transaction
'DD44', // SKU/code - required
'T-Shirt', // product name
'Olive Medium', // category or variation
'11.99', // unit price - required
'1' // quantity - required
]);
_gaq.push(['_trackTrans']);

因此,通过此代码示例,我的交易得到了跟踪。

但在我的谷歌分析资料中,我没有看到城市、州和国家。尽管其他详细信息,如 order_id、运输等 SKU 正在被跟踪。

如果您对此有任何想法,请告诉我。

谢谢,
乌塔姆

最佳答案

All other variables within the addTrans method are optional.

  • The affiliate field is not required, and was removed from the Google Analytics Ecommerce reports. You can still use the affiliate field for custom reports and filtering.

  • Tax and shipping appear in the transactions report if you have access to those variables.

  • The city, state, and country are currently not being used by Google Analytics, but the information is still being collected. You can however use these fields within the profile filters if you have a use for them.



来源: http://www.roirevolution.com/blog/2009/05/stressing_about_your_ga_ecommerce.php

关于google-analytics - 如何在谷歌分析电子商务跟踪中查看城市/州/国家?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12935586/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com