Skip to content

ViewContent meta Pixel not passing product name parameter

We are using PWA Venia Reactjs setup and We integrated Meta pixel event called ViewContent in our site using below code :

src/components/ProductFullDetail/ProductFullDetail.Js

<script>
fbq('track', 'ViewContent');
</script>

we want to pass “Product name” as parameter for event “ViewContent” . So we tried below code

fbq('track','ViewContent', {
    'name': product?.name
    });

Here is full code : https://pastebin.com/LLDEt8ig

Issue :

We can not able to fetch the parameter Product name in PDP Page.

We are getting only event ViewContent in PDP Page :

enter image description here

But We need parameters along with event ViewContent :

enter image description here