如何正确编写功能
如何在Google标签管理器中正确编写变量(自定义JavaScript)的函数? 由此:
function() {
'items': eshop.product.options.length === 0 ? [{
'id': eshop.product.id,
'google_business_vertical': 'retail'
}] : eshop.product.options.map(function (option) {
return {
'id': eshop.product.id.toString() + '_' + option.id,
'google_business_vertical': 'retail'
};
})
}
仍然有一些错误。 感谢您的帮助。
佩蒂曼
how to correctly write a function for a variable (custom javascript) in google tag manager?
from this:
function() {
'items': eshop.product.options.length === 0 ? [{
'id': eshop.product.id,
'google_business_vertical': 'retail'
}] : eshop.product.options.map(function (option) {
return {
'id': eshop.product.id.toString() + '_' + option.id,
'google_business_vertical': 'retail'
};
})
}
still have some error.
Thanks for help.
Petiman
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我明白了..
ok I got it..