var mysrc = "https://tracking.buygoods.com/track/?a=5257&firstcookie=0&referrer=&product=0-CC1-69,0-CC3-139,0-CC6-199&sessid2=&caller_url="+encodeURIComponent(window.location.href); if(typeof add_to_cart !== "undefined") { mysrc = mysrc+"&add_to_cart="+add_to_cart; } var newScript = document.createElement("script"); newScript.type = "text/javascript"; newScript.async = true; newScript.src = mysrc; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(newScript, s);