I am trying to debug this piece of code:
$(document).track(
{
'module' : 'Omniture',
'event' : 'instant',
'args' :
{
'linkTrackVars' : 'products,events,eVar31,eVar32,eVar33,eVar34,eVar35,eVar36,eVar37',
'linkTrackEvents' : '',
'linkType' : 'o',
'linkName' : 'Click'
'svalues' : {
'products' : ';OFFERID1[,;OFFERID2]',
'events' : 'Add',
'eVar31' : id,
'eVar32' : family,
'eVar33' : c_id,
'eVar34' : r_id,
'eVar35' : inetwork,
'eVar36' : customer,
'eVar37' : tag
},
},
'defer' : '0';
},
);
I am getting following error messages:
missing } after property list
'svalues' : {\n
Any clue.
Your last line (within the object) shouldn’t end in a semicolon:
Plus, IE will throw an error if the last item in a set ends in a comma. Corrected code below: