I have the following jquery for Google Tag Manager
(for item in cartObject) [Item] [Item] [Categories], "Brand": Cart Object [Item] Item [_ 0xad1e [5]], "Price": cartObject [Item] [_ 0xad1e] [16], "Quantity": cartObject [items] [_ 0xad1e [30]]})}; Ga (_0xad1e [6], _ 0xad1e [38], {"step": _ 0xc357x7}); Ga (_0xad1e [8], _ 0xad1e [9], _ 0xad1e [10], _xx1e [11], _xx1e [39] + _xx357x7, {"nonInteraction": 1}); }
It seems that to get the variable from the success.html page of my website
orderObject ['0'] = {'sku' '161', 'Name': 'Trapist Alley Discovery (12 bottles) plus free forty glass', 'value': '38 .5 ',' Quantity ':' 1.0000 ',' Categories ':' Discovery cases, Belgium Browse all our Beer, browse by style, Browse blended cases, Abbey and Trappist ',' Brand ':' '} var transactionObject = {}; '6.9900', 'Tax': '7.5800', 'Shipping': '6.9900', 'Sequode': '' '10002,250', 'Support': 'Beer Hawk', 'Revenue': '6.99 00 ',' Tax ':'}
It works in all browsers other than Internet Explorer, which gives the following message in the console
'sku Unable to retrieve the assets of the undefined or zero reference
My code begins with
In this article (and others) in Google Analytics
cartObject [Item] [sku]
Item is not a variable sku - it should be a string
Try
cartObject [item ] ["Sku"]
or
cartObject [item] .sku
etc.
No comments:
Post a Comment