Cleeng

Develop your perfect subscriber platform with our unique modular architecture.

Integration works with Cleeng Checkout module where it fills the tracking ID into the transactionExternalData parameter and then utilizes webhooks to track all the payments. It works with Recurring Commissions feature.

1.

Add tracking ID into your Cleeng Checkout implementation

First you need to locate the Cleeng Checkout implementation on your website and set up the transactionExternalData parameter in the Checkout into which the tracking ID will be written. Here is how customized Cleeng Checkout with the implementation will look like:

CleengApi.checkout({
    displayType: "overlay",
    offerId: "S123123123_US",
    transactionExternalData: PAPcookieId,
    completed : function(result){}
});

2.

Add code for saving of the tracking ID

Put the following code somewhere above the Cleeng Checkout implementation so the tracking ID is saved into the PAPcookieId variable:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
try {
PostAffTracker.track();
} catch (err) { }
var PAPcookieId = '';
PostAffTracker.executeOnResponceFinished.push(function() {
  PAPcookieId = PostAffTracker._getAccountId() + PostAffTracker._cmanager.getVisitorIdOrSaleCookieValue();
});
</script>

3.

Set up the tracking plugin

Log in to your Post Affiliate Pro merchant panel and navigate to Configuration->Plugins and enable the Cleeng webhook handling plugin. Configure the plugin and fill in your Cleeng API publisher/broadcaster token and the integration is done.