Integrating with Chargebee

Out-of-the-box features:
  • Conversion tracking
  • Commission based on order amount
  • Track affiliate coupon code conversions
  • Supports lifetime commissions
  • Auto-handle recurring commissions
  • Auto-handle refunds and disputes

If you are using Chargebee this guide is for you. If you want to award your affiliates with a recurring commissions you can do so with Zapier. This guide assumes that you have a Zapier account. Alternatively, you could use Chargebee’s webhooks feature to take care of recurring commissions.

In-app Checkout users

  1. Place the following code just after the <head> tag of every page of your website

    <script src="" type="text/javascript" async></script>
    <script type="text/javascript">
        tap('create', '((((YOUR ACCOUNT ID))))', { integration: "chargebee" });
        var setupCb = function() {
            if (typeof Chargebee === 'undefined') return;
            var cbInstance = Chargebee.getInstance();
            cbInstance.setCheckoutCallbacks(function(cart) {
                return {
                    success: function(hostedPageId, data) {
                        tap('trial', data.subscription.customer_id);
  2. Next, go to Settings > Configure Chargebee > Customer facings Essentials > Checkout & self serve portal, then navigate to the Advanced Settings and add the domain this code will be hosted on the “Add domains” section.

  3. Save the changes you’ve made, and you’re done!

Recurring commissions

To setup recurring commissions, you can use our Zapier app.


Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.

Start a 14-day free trial with all our features enabled