How to setup "Product Viewed" event with Zaraz + GA4

I’m trying to track viewed products with Zaraz, I have enabled e-commerce tracking in Zaraz and GA4.

I added this code to the product page:

But I don’t see any “Product Viewed” event in GA4 or Zaraz. No error in the console.

Is there anything else I have to do? Do I have to use GTag manager or Zaraz completely replace it?
Do I have to manually set up a trigger in Zaraz or GA4? This is so confusing.

This is the code on the product page:

    <script>
        zaraz.ecommerce('Product Viewed', {
            product_id: '12345',
            sku: 'abc',
            category: 'T-shirts',
            name: 'T-shirt',
            brand: 'My Brand',
            variant: 'black',
            price: 20.00,
            currency: 'usd',
            value: 20.00,
        });
    </script>
  • :thinking: Have you enabled e-commerce events in the overall Zaraz > Settings page?
  • :white_check_mark: Zaraz is a complete replacement for Google Tag Manager
  • :white_check_mark: No need to setup manual triggers for e-commerce events