Contentsquare

Sample Implementation Project

When the Add to cart's popin is opened, please execute :

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(['trackPageview', window.location.pathname+window.location.hash.replace('#','?__')+'?cs-popin-add-to-cart']);
</script>

(The script must be executed once the page has reached its final state -- the loading is over, needed variables are set,...)

When it's closed by the user, please execute :

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(['trackPageview', window.location.pathname+window.location.hash.replace('#','?__')]);
</script>

Get more information from the UXA documentation...

© Contentsquare, 2020.