Product view event causes a page view of a product to be counted twice

So I want to track a product view event:

// Push Product View Data to Matomo - Populate parameters dynamically
_paq.push(['setEcommerceView',
    "0123456789", // (Required) productSKU
    "Ecommerce Analytics Book", // (Optional) productName
    "Books", // (Optional) categoryName
    9.99 // (Optional) price
]);

// You must also call trackPageView when tracking a product view 
_paq.push(['trackPageView']);

The problem is, once someoen visits my product page let’s say product-1 then the normal ```
_paq.push([‘trackPageView’]);

which is in the initialization code gets called, and then the ecommerce view event requires also the track page view to be called, this causes duplicate events for the product page view e.g. I see them in logs as if they are visited twice...

How to fix this?