Created
October 22, 2014 13:05
-
-
Save fredericksilva/997ce6e0d9781e2786b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var listaProdutos = []; | |
for(var i = 0; i < document.getElementsByClassName("id-produto").length; i++) | |
{ | |
if(i < 3) | |
{ | |
listaProdutos.push(document.getElementsByClassName("id-produto")[i].innerHTML); | |
} | |
} | |
window.criteo_q = window.criteo_q || []; | |
window.criteo_q.push( | |
{ event: "setAccount", account: XXX }, | |
{ event: "setCustomerId", id: "" }, | |
{ event: "setSiteType", type: "d" }, | |
{ event: "viewList", item: listaProdutos } | |
); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment