Set up an affiliate program is a popular and effective selling strategy and join an existing big affiliate network platform is absolutely the shortcut, it will save your time to looking for the affiliates by yourself.
ShareASale.com is one of the biggest affiliates networks, so if you already have an online shop which is based on Easy Digital Downloads and wants to set up an affiliate program on ShareASale, this guide will tell you how to set up the ShareASale tracking code for Easy Digital Downloads.
Set up an Affiliate program on ShareASale is easy. But in Step 4, there’s no Easy Digital Downloads option in the shopping carts list, so you should select “Developer Install” as below:
Then, just simply copy the following codes to the functions.php of your theme.
Please note, you should replace the following arguments:
- Change the $merchantID value.
- Change the currency, the default is USD.
- Change is_page(‘purchase-confirmation’) to the page id or slug of the “Purchase Confirmation” page on your website. For example, if this page slug is “success-page” on your website, you should write as is_page(‘success-page’).
Additionally, look at line 14:
<img src="https://www.shareasale.com/sale.cfm?tracking='.$order_id.'&amount='.$amount.'¤cy='.$currency.'&merchantID='.$merchantID.'&transtype=sale&sscidmode=6&sscid='.$sscid.'" width="1" height="1">
You can see “&amount=’.$amount.’& argument, by default, the amount value is after using the coupon code, if you want to track the subtotal which is before using the coupon code, just change it to “&amount=’.$subtotal.’&
That’s it! Now back to the ShareASale website, continue to the next step, testing the tracking code. Click the “Begin the Test” button, it will open your website in a new browser tab or window, now you need to make a purchase on your website.
Once you finished the purchase on your website, back to the ShareASale page, if you can see the correct order and commission information, it means done!
The rest of the setup steps are very easy to understand, you can do it by yourself.
If you are still looking for an Easy Digital Downloads theme, don’t forget to take a look at our Dew EDD Theme. Good luck with your sales!