I am beefing up some scripts on my site. I would like to pull variable data into different scripts which are linked to events (add to cart, view a product page, order placed, sign up, etc.).
With help on one I would be able to complete the rest myself.
For example when a product page loads I would like this to fire with the relevant content populated:
<script>
fbq('track', 'ViewContent', {
content_ids: ['<PRODUCT_ID>'],
content_type: '<CONTENT_TYPE>',
currency: '<CURRENCY_INDICATOR>',
value: <VALUE_OF_THE_CONVERSION>
});
</script>
Bookmarks