Integrating with Shopify

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

Note: This guide only covers Shopify Online Store. Other sales channels such as “Buy Button” and ReCharge are not supported.

Shopify App Store!

  1. Go to Tapfiliate’s app page in Shopify’s app store, and click Add app.
    Add Tapfiliate to your Shopify store

  2. You’re asked to either create a new Tapfiliate account or link to an existing account.

Enter your account’s subdomain (you can see it in your browser’s address bar), and click Log in to an existing account.
Your Tapfiliate subdomain

Important note: You can only add one Shopify shop per single Tapfiliate account. So if you have a Shopify shop already connected to Tapfiliate, you need to create a new Tapfiliate account instead of linking the old one.

Select a new subdomain name for your unique Tapfiliate space, and click Create a new Tapfiliate account. Shopify will generate a payment plan for you, that you need to approve in your Shopify account admin panel. Your Tapfiliate free trial will start immediately, and you will not pay until the 14-day free trial is over.
Free trial Shopify Tapfiliate App

That’s it - now you’re ready to start setting up your affiliate, referral or influencer tracking program!

Shopify code-based integration

It’s also possible to integrate Tapfiliate into your Shopify shop by manually adding the JS code. This method of integration was in use before May 2022. Although it is no longer our primary method of integration, it is still working.

  1. In your shop’s admin environment, please go to: App and Sales Channels > Open Sales Channels > click on Actions > Edit Code
  2. Select the theme.liquid file in the layouts folder. Add the following code, just before the </head> tag.

    <script src="" type="text/javascript" async></script>
    <script type="text/javascript">
        tap('create', '((((YOUR ACCOUNT ID))))', { integration: "shopify" });


  3. Hit save

  4. Next, in your shops admin environment, go to:  Settings > Checkout > Scroll down to the Order status page scripts block, and paste in the following code:

    {% if first_time_accessed %}
    <script src="" type="text/javascript" async></script>
    <script type="text/javascript">
        tap('create', '((((YOUR ACCOUNT ID))))', { integration: "shopify" });
        tap('conversion', '{{ order_number }}', {{ order.subtotal_price }}/100, {
            coupons: {{ order.discounts | map: 'code' | json }},
            currency: "{{ order.currency }}",
            customer_id: "{{ }}",
    {% endif %} 


  5. Hit save and you are all done!


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