Created
July 11, 2019 23:18
-
-
Save sharnie/ab1bf44723c07f39fed536b05da64269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((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