How can we help?

Multiple currencies

Our multiple currencies feature allows you to track sales made in different currencies. This means that during the sale tracking process, SustainAffiliate will recompute the cost of the tracked sale automatically to our system currency (US dollar). Even with multiple currencies, you and the Content Creators will still see all your commissions in the system currency (US dollar). This feature only allows you to register sales made in different currencies and properly recalculate sale value to the system currency (US dollar) so the SustainAffiliate could generate commissions with proper values for such sales.

To track a sale in a currency that is not USD, you need to use an additional parameter in the JavaScript sale tracking code.

Standard sale tracking code example

<script id="pap_x2s6df8d" src="https://Network.SustainAffiliate.com/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('default1');
var sale = PostAffTracker.createSale();
sale.setTotalCost('120.50');
sale.setOrderID('ORD_12345XYZ');
sale.setProductID('test product');
PostAffTracker.register();
</script>

Sales tracking code with non-default currency

This code will register a sale with a total value of USD120.50 because USD is set as the default currency for SustainAffiliate. If we want to tell the script that the currency of this sale is EUR, we need to add an additional function to this sale tracking code sale.setCurrency('EUR');

After adding it the final script to track the order with a total value of 120.50 EUR will look like this:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('default1');
var sale = PostAffTracker.createSale();
sale.setTotalCost('120.50');
sale.setOrderID('ORD_12345XYZ');
sale.setProductID('test product');
sale.setCurrency('EUR');
PostAffTracker.register();
</script>

That is all, now when this JavaScript code is executed, it will track a sale with a value of EUR120.50 which is then automatically recomputed to the default system currency (USD) according to the defined exchange rate for EUR currency. So based on our example currency configuration, the value of this sale will be: EUR120.50 x 1.1166(EUR exchange rate) = USD134.55. And the commission generated by SustainAffiliate will be computed from this USD value.

Table of Contents