Использовать следующую конфигурацию:
<amp-analytics type="facebookpixel" id="facebook-pixel">
<script type="application/json">
{
"vars": {
"pixelId": "PIXEL_ID"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
},
"trackViewContent": {
"on": "visible",
"request": "eventViewContent",
"vars": {
"product_catalog_id": "category_id",
"currency": "EUR",
"content_name": "content_name",
"content_category": "content_category",
"content_type": "product",
"content_ids": "[1,2,3]",
"value": "10"
}
}
}
}
</script>
</amp-analytics>