Andrea_17 Posted June 3, 2020 Share Posted June 3, 2020 Hello guys, I implemented the facebook pixel on a prestashop site via GTM. So far everything is fine, it tracks everything very well, only that when I go to set the "purchase" event, I am not recognized the parameter relating to the order total and therefore I cannot see the final price in the event. On the order confirmation page, the variable assigned to the order total is {$ totals.total.value}, but after a few days, I get the error "Invalid purchase event value parameter". Can you tell me why it is not recognized? Where am I wrong? Prestashop 1.7.5.1 theme: Transformer Link to comment Share on other sites More sharing options...
Underfunk Posted September 21, 2022 Share Posted September 21, 2022 (edited) You need to assign to Purchase event a dynamic value: fbq('track', 'Purchase', { value: final_price_without_currency, // This is from Facebook's docu. Not recommended currency: 'USD' }); // You should look into your Checkout file and find the Value WithOUT currency. In my case (PS 1.6.0.9) : fbq('track', 'Purchase', { value: ecomm_totalvalue_tax_exc, currency: 'SEK' }); // See the attachment to have an image of how it should look like your "Thank you"/ "Order Success" HTML page. Edited September 21, 2022 by Underfunk Code is JavaScript (GTM embeded), no HTML. The picture has a mark for the GA variable. (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now