Language switcher


–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.


Maximize the value of your existing affiliate marketing software and extend its possibilities with a wide range of integrations, plugins and apps. All built to improve the strong foundations of Post Affiliate Pro.


Easily sell digital as well as physical products with this plugin.

This integration method integrates Cart66 (WordPress plugin) receipt page.

Sale tracking

The integration is pretty easy. The only step you have to take is to edit file wp-content/plugins/cart66/views/receipt.php and to find a line with this code:

if(Cart66Setting::getValue('enable_google_analytics') == 1 && $order->viewed == 0)

Now, copy the code below and paste it just above the mentioned line:

<!-- {$PapFullname} integration snippet -->
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo number_format($order->total, 2, ".", ""); ?>');
sale.setOrderID('<?php echo $order->trans_id; ?>');
sale.setProductID('<?php echo get_bloginfo("name"); ?>');
<!-- /{$PapFullname} integration snippet -->

That’s it. Save your changes. Now your system is integrated.

Per product tracking

In case you want to track your orders per product, please use this code instead:

<!-- {$PapFullname} integration snippet -->
<script type="text/javascript">
  $i = 1;
  foreach ($order->getItems() as $item) {
  echo "var sale$i = PostAffTracker.createSale();";
  echo "sale$i.setTotalCost('".$item->product_price * $item->quantity."');";
  echo "sale$i.setOrderID('".$order->trans_id."(".$i.")');";
  echo "sale$i.setProductID('".$item->product_id."');";
<!-- /{$PapFullname} integration snippet -->

Coupon tracking

In case you want to support coupon tracking, add this code to your sale tracking code:

if (!empty($order->coupon) && !empty($couponCodeUsed)) {
  $coupons = explode(" (",$couponCodeUsed, 2);
  echo "sale.setCoupon('".$coupons[0]."');\n";

If you want to use discount amount in your sale tracking code for something, you can use this variable:


Cart66 on Cloud

In case you have the cloud-based Cart66 then the integration is possible too. You won’t be able to track per product orders, but still you can track order subtotal and order ID. Add the following HTML tracking code to your thank you page:

<img src="//{$ScriptsUrl}{$ImageTrackUrl}&TotalCost={{order_subtotal}}&OrderID={{order_number}}" width="1" height="1" />

That’s it. Save your work and you are done.

Do not forget to integrate your WordPress with 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