Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created July 4, 2014 15:04
Show Gist options
  • Save cleytonmessias/2ffe00e18347edc4c426 to your computer and use it in GitHub Desktop.
Save cleytonmessias/2ffe00e18347edc4c426 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
var _trustvox = _trustvox || [];
_trustvox.push(['_storeId', '62']);
var tagProd = "<ImagemProdPri>";
tagProd = tagProd.replace('../',"");
var img = "http://www.soprabalao.com.br/" + tagProd;
_trustvox.push(['_productId', "<IDProduto>"]);
_trustvox.push(['_productName', "<NomeProd>"]);
_trustvox.push(['_productUrl', window.location.href]);
_trustvox.push(['_productPhotos', [img]]);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true;
tv.src = '//trustvox-production-assets.s3.amazonaws.com/assets/trustvox.1.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tv, s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment