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.