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>

Validation:
https://help.datatrics.com/en/articles/3195124-check-if-a-category-view-is-registered

Did this answer your question?