–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

DPD: Digital Product Delivery

An easy to use digital publishing platform for selling and delivering downloadable content.

DPD’s copy-and-paste shopping cart and digital delivery system makes it easy to sell downloads, keycodes, and tangible goods through your website, blog, forum posts, Facebook, and more. Automatically generate unique, secure download URLs for every purchase and track customers and sales or run your own affiliate program.

The integration method uses DPD admin panel option to have your own tracking codes.

Entering the sale tracking code

Log in to your DPD. In case you have multiple stores, select the store you want to add the integration code to using the store selector in the top right corner of the dashboard. Navigate to Integrations in the left menu to open the integration list. Find the 3rd party tracking code integration in the list and click ‘+ Add’ button‘.

The configuration page that opens is the place where you can configure the integration. First, make sure the code is enabled, name is the way you want but keep it informal so it is easy for you to recognize which tracking code is for which application. Finally, the tracking code you have to use is this:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
	var sale = PostAffTracker.createSale();
	sale.setTotalCost('{{ order.total_price - order.tax_price }}');

Save the integration settings and you are done.

Available variables

These are variables you can use, in case you want to extend your tracking code:

  • Order – Order variables are related to the customers order. For example:
  • Store – Variables related to the store. For example:
  • Customer – Variables related to the customer for this order. For example:

Per product integration

If you want to track per product commission, please use the following sale tracking code instead:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">

	{% for item in order.items %}
	var sale{{ loop.index }} = PostAffTracker.createSale();
	sale{{ loop.index }}.setTotalCost('{{ item.line_price }}');
	sale{{ loop.index }}.setOrderID('{{ order.id }}({{ loop.index }})');
	sale{{ loop.index }}.setProductID('{{ item.sku }}');
	{% endfor %}


Do not forget to integrate your cart with the click tracking code.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call