Pass Dynamic Purchase Value With Meta Events
Jon Loomer
NOVEMBER 29, 2023
If you pass purchase events to Meta via the pixel and API, you may be aware of a challenge: What do you do when the value of the purchase is variable? Here’s an example of the purchase event code and parameters that you’d use when you know that the price of a product is $147… fbq('track', 'Purchase', { value: 147.00, currency: 'USD' }); This is great when the loading of a specific page (like a confirmation page) means that someone purchased a product for $147.
Let's personalize your content