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 :
But We need parameters along with event ViewContent :