I am new to this site and to developing with jQuery so I am sorry if this is a newbie question. I have been tasked with adding an array of products that are on the page to a google dynamic retargeting tag. I have my array filled with the correct data but I cant seem to add it to the tag as a variable. I am getting a parsing error saying "Expected ':'" within visual studio 2013 here is the code:
var productsString = JSON.stringify(products, null, 4);
var google_tag_params = {
productsString /* ERROR HERE */
};
/* <![CDATA[ */
var google_conversion_id = 1030976867;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
Thank you for your help.