Hi, do you have a simple ready solution to add dynamicly facebook events codes like that?
fbq('track', 'ViewContent', {
content_ids: , // 'REQUIRED': array of product IDs
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});
fbq('track', 'Purchase', {
content_ids: , // 'REQUIRED': array of product IDs
value: 1234.99, // REQUIRED, up to 2 decimals optional
currency: 'USD', // REQUIRED
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});
fbq('track', 'AddToCart', {
content_ids: , // 'REQUIRED': array of product IDs
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});