Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
((productId, productPrice) => {
'use strict';
window.fbq(
'track',
'Purchase', {
content_type: 'product_group',
content_ids: `[${productId}]`,
value: productPrice,
num_items: 1,
currency: 'USD'
}
);
})('PRODUCT_ID', 0.00);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.