Skip to main content
Category view script

How to implement our category view script manually

Christiaan Proper avatar
Written by Christiaan Proper
Updated over a week ago

This script needs to be fired once every category page view. Again, the variables ({{name}}, {{sku}}, etc.) mentioned below need to be dynamically filled with the data of the item.

<script type="text/javascript">
_paq.push(['setEcommerceView',
false,
false,
"{{categoryname}}"
]);
_paq.push(['trackPageView']);
</script>

Category view script example

<script>
_paq.push(['setEcommerceView',
false,
false,
"Adventure Books"
]);
_paq.push(['trackPageView']);
</script>
Did this answer your question?