We are trying to use Goaffpro for affiliate tracking on Odoo 18.
https://api.goaffpro.com/loader.js?shop=your-unique-store-public-key"></script>
The next step is to add a script only the /shop/confirmation page.
<script type="text/javascript">
var goaffproOrder = {
number:'#1001',
total:1000
}
goaffproTrackConversion(goaffproOrder)
</script>
Where the values for the object are replaced by the variables that are used to populate the page. Here is an example for Thrive Cart
<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>
Is there a similar object in Odoo that can be used to get the order information for the script?