Setting Up Affiliate Tracking with Shopify

You can assign affiliate links to your creators and track how those links are used with affiliate tracking. With affiliate tracking, you can see how many page views, sales, and commissions your creator’s unique link has generated. This lets you not only easily pay out your creators, but track where your most successful conversions are. 

Different ecommerce stores and websites have different steps for affiliate tracking. If you’re not integrated with Shopify or want to set up affiliate tracking on a website instead, check out our other articles on setting up affiliate tracking with WooCommerce or any website.

What You'll Need 

  • Admin access to your Shopify account

How to Do It 

  1. Log into GRIN.
  2. Navigate to Account > Account Settings.


  1. Click on Affiliate Integration. This will open the Affiliate Integration Set Up window.


  1. If you haven’t generated a token yet, click Generate Token. This will generate: 
    • Your token, as well as its created date and a delete button
    • The Installing the Affiliate SDK section (the Shopify SDK will be installed automatically when you connect your Shopify account)
    • The Tracking Conversions section


  1. Go to the Tracking Conversions section.
  2. Click the Copy Shopify Code button to copy the script. You can also copy it from here: 
    Grin = window.Grin || (window.Grin = []);var order_number = '{{ order_number }}', order_name = '{{ name }}', amount = '{{ subtotal_price | money_without_currency }}', currency = '{{ currency }}';Grin.push(['conversion', amount, {order_number: order_number, name: order_name, currency: currency}]); </script>


  1. Log into Shopify.
  2. Navigate to Settings > Checkout. This will open the Checkout settings window.


  1. Scroll down to the Order Processing section.
  2. Paste the copied Shopify code from step 6 into the Additional Scripts box. If there’s existing scripts in the box already, paste the code in a new line after the existing scripts.


That’s it! Your Shopify account is now set up for affiliate tracking in GRIN. Check out our other articles on creating affiliate link groups and assigning them to your creators to start seeing your creators’ conversions.




Article is closed for comments.