The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

How to call javascript method on checkout

alanalan Member
Hi,

I want to call the facebook javascript method to track the value of our conversions. We already have facebook code in our checkout template, but I'm not sure which event should be used to trigger this facebook method:


fbq('track', 'Purchase', {'value':'9.99','currency':'USD'});


The value would be the order total from the FC.json object.

What event should trigger this code?

We are using FC v2.0

Thank you!
-Alan
Comments
Sign In or Register to comment.