Skip to content

Instantly share code, notes, and snippets.

@cleytonmessias
Created March 12, 2014 22:46
Show Gist options
  • Save cleytonmessias/9518146 to your computer and use it in GitHub Desktop.
Save cleytonmessias/9518146 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(document).ready(function() {
window._trustvox = [];
_trustvox.push(['_storeId', '75']);
_trustvox.push(['_productId', $(".product_code").find("span").text()]);
_trustvox.push(['_productName',$(".titulo_produto").find("h1").text()]);
_trustvox.push(['_productPhotos', [$(".product_main_img").find("img").attr("src")]]);
(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