Storefront > Settings > Orders > General > Miscellaneous panel > Place Order Script
Where to enable ShareASale Tracking Codes
Example ShareASale Tracking Codes
Overview
ShareASale is a third-party affiliate tracking program that allows affiliates to promote and earn commissions for product referrals.
Where to enable ShareASale Tracking Codes
When setting up your ShareASale account, you will be given a specific tracking code located at http://www.shareasale.com/m-gettrackingcode.cfm near the bottom of the page.
To integrate this code with Cart.com, go to Storefront > Settings > Orders > General, and scroll down to the Miscellaneous panel to the Place Order Script field.
Any code that's supposed to go on your "thank you page" to track successful orders will be placed in this field and it’s where you should paste your ShareASale code.
You will notice merge codes replacing the placeholders from ShareASale, such as AMOUNTOFSALE.
You will need to do this for each placeholder field in the ShareASale script. This way Cart.com can fill in the information from your orders automatically.
Example ShareASale Tracking Codes
Per-Sale Affiliate Codes
These codes can be used when affiliates are rewarded for actual generated sales.
Here is a simple script using Cart.com merge codes and where XXXXX is your merchant id. This scenario covers most of the basic uses of the ShareASale affiliate tracking program.
<img src="https://shareasale.com/sale.cfm?amount=##ORDERSUBTOTAL##&tracking=##ORDERID##&transtype=sale&merchantID=XXXXX width="1" height="1"> |
In this script we're sending:
- The order subtotal in the amount parameter using "amount=##ORDERSUBTOTAL##".
- The order ID in the tracking parameter using "tracking=##ORDERID##".
A more advanced scenario where you have product specific commissions to track would look like this:
<img src="https://shareasale.com/sale.cfm?amount=##ORDERSUBTOTAL##&tracking=##ORDERID##&transtype=sale&merchantID=XXXXX&skulist=##ORDERITEMLISTURLENCODED##&pricelist=##ORDERBASEPRICELISTURLENCODED##&quantitylist=##ORDERQUANTITYLISTURLENCODED##" width="1" height="1"> |
In this script, we’re sending:
- The order subtotal in the amount parameter using "amount=##ORDERSUBTOTAL##".
- The order ID in the tracking parameter using "tracking=##ORDERID##".
- The item numbers as a comma separated field in the skulist parameter using "skulist=##ORDERITEMLISTURLENCODED##".
- The price lists as a comma separated field in the pricelist parameter using "pricelist=##ORDERBASEPRICELISTURLENCODED##.
- The quantity list as a comma separated field in the quantitylist parameter using "quantitylist=##ORDERQUANTITYLISTURLENCODED##".
This will tell ShareASale the purchased products on the order, as well as the prices and quantities of each.
Note: To use this type of script, you will need to upload a product list to ShareASale.
Lead Affiliate Code
This code can be used when affiliates can earn commission from generating leads.
<img src="https://shareasale.com/sale.cfm?amount=0.00&tracking=##ORDERID##&transtype=lead&merchantID=XXXXX" width="1" height="1"> |
In this script, we're sending:
- 0.00 in the amount parameter (In Lead based scripts, ShareASale still requires the amount parameter even though it is always set to 0) using "amount=0.00".
- The order ID in the tracking parameter using "tracking=##ORDERID##".