在我的eshop上完成订单后,有这部分代码:
dataLayer.push({
'event': 'trackTrans',
'ecommerce': {
'purchase': {
'actionField': {
'id': 'XXX',
'affiliation': 'My eshop',
'revenue': '158.99',
'shipping': '00',
'coupon': ''
},
'products': [
{'name': 'Microsoft Office',
'id': 'XXX',
'category': 'Microsoft',
'price': 158.99,
'quantity': 1}
]
}
}
});
我正在尝试将值保存revenue
到变量中,但未能达到收入值,我该怎么做?
非常感谢。