gpt4 book ai didi

google-analytics - 遵循Google电子商务分析代码有什么问题

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

我已经等待了72个小时以上,但未跟踪电子商务数据。在分析帐户中启用了跟踪。

 <script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-1']);
_gaq.push(['_setDomainName', '.welcome.com']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

_gaq.push(['_addTrans',
'650', // order ID - required
'bags', // affiliation or store name
'19.99', // total - required
'0',
'4.0', // shipping
'Anchorage', // city
'Alaska', // state or province
'USA'
]);
//Add each items in the order
_gaq.push(['_addItem',
'650', // order ID - necessary to associate item with transaction
'29', // SKU/code - required
'bags set of 4', // product name
'Cleaning Supplies', // category or variation
'15.99', // unit price - required
'1'
);
//Now submit the transaction
_gaq.push(['_trackTrans']); //submits transaction to the Analytics server

(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>

</body>

最佳答案

我认为您缺少结尾括号:

//Add each items in the order
_gaq.push(['_addItem',
'650', // order ID - necessary to associate item with transaction
'29', // SKU/code - required
'bags set of 4', // product name
'Cleaning Supplies', // category or variation
'15.99', // unit price - required
'1'
]); //right here, missing closing bracket

关于google-analytics - 遵循Google电子商务分析代码有什么问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6221933/

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