Thrive cart integration with Goaffpro SDK tracking - anujtenani/goaffpro GitHub Wiki
Add the following code in your store header area
<script type="text/javascript" src="https://api.goaffpro.com/loader.js?shop=your-unique-store-public-key"></script>Please make sure you replace the your-unique-store-public-key with your public key from your account. Also see Settings -> Advanced Settings tab -> Third party tracking section in the admin panel
Add the following code in your Success page/Thank you page
<script type="text/javascript">
var goaffproOrder = {
id:_thrive_order.order.id,
number:_thrive_order.order.invoice_id,
total: _thrive_order.order.total/100,
tax: _thrive_order.order.tax/100,
shipping: _thrive_order.order.shipping,
currency:_thrive_order.order.currency,
customer: {
first_name: _thrive_order.customer.name,
email:_thrive_order.customer.email
},
}
goaffproTrackConversion(goaffproOrder);
</script>