Integrate with Shopify
impact.com Affiliate Marketing on Shopify integrates impact.com's conversion tracking and reporting with your Shopify store, allowing you to manage your programs efficiently. The app is a no-code plugin, meaning you can integrate and end-to-end test without web development expertise.
Prerequisites
Confirm the following about your Shopify store and impact.com account:
Event Type: You have one (1) Event Type tracking online sales. First subscription orders are tracked through this event type too.
Hosted on Shopify: Your store landing page is hosted on Shopify, not externally. Custom shopping experiences aren’t supported at this time.
Cookie banner required: You have the Customer Privacy cookie banner enabled, as required by Shopify. EMEA-based storefronts require customers to opt in for tracking consent.
SKUs assigned by default: All products in your Shopify store are automatically assigned a SKU (stock keeping unit). Learn how to edit products in Shopify.
Recurring subscriptions need extra setup: This guide tracks one-time purchases and first subscription orders. To also track recurring subscription orders (renewals), follow Integrate with Shopify & Recharge Subscriptions or Integrate with Shopify & Bold Subscriptions instead. See How subscription orders are tracked.
Install the impact.com app on your Shopify store
While logged in to Shopify, open the impact.com Affiliate Marketing app in the Shopify App Store and select Install.
Shopify will prompt you to install Impact: Partnership Cloud. Review the details on the screen, and select Install.

Once installed, find the app in your list of Shopify apps. To begin, select Set up your integration.
If you only want to connect your Shopify product catalog, without impact.com conversion tracking, select Set up Product Catalogue Only instead. Then follow the steps in Connect Your Shopify Product Catalog.

Select a tab to view the next setup steps for your impact.com program. When you first install the app, the Affiliate Settings, Creator Settings, and Advocate Settings tabs are all available alongside Account Settings.
Under the Account Settings tab, input your impact.com account settings.
See the Settings reference below for instructions on where to find the details needed.
Settings reference
Impact Account SID and Auth Token *
Enter the Account SID and Auth Token of an API token that has the required API scopes enabled. The scopes are listed below this table. Without them, conversions, modifications, and reversals won't pass through the Shopify/impact.com integration.
Universal Tracking Tag
In the impact.com platform, navigate to [User profile] → Settings → Tracking → General. Copy the code in the Universal Tracking Tag field and paste it here.
Required API scopes
When you create or edit your API token, enable the following scopes:
Accounts
Retrieve company information (GET /CompanyInformation)
Reads your account details to verify the connection.
Programs
Retrieve a program (GET /Programs/{Id})
Reads the details of the program you entered.
Conversions
Create conversion (POST /Conversions)
Sends new orders to impact.com.
Actions
Update action (PUT /Actions)
Sends order modifications and reversals to impact.com.
If you're using Performance, then input your impact.com Performance details in the Affiliate Settings tab.
Settings reference
Program ID
Enter your Program ID. To find it, select your brand name in the upper-left corner of your impact.com account. It appears under your program name.
Sale and Subscriptions Tracker *
In the impact.com platform, navigate to [User profile] → Settings → Event Types. Copy the number in parenthesis next to the name of the Online Sale event type.
If you're using Creator to compensate your creators on a CPA model, then input your impact.com Creator details in the Creator Settings tab.
Settings reference
Creator Program ID
Enter the Program ID of your Creator program. To find it, select your brand name in the upper-left corner of your impact.com account. It appears under your program name.
Product Gift Tracker
In the impact.com platform, navigate to [User profile] → Settings → Event Types. Copy the number in parenthesis next to the name of the Product Gift event type.
Sale and Subscriptions Tracker *
In the impact.com platform, navigate to [User profile] → Settings → Event Types. Copy the number in parenthesis next to the name of the Online Sale event type.
If you're using Advocate, then input your impact.com Advocate details in the Advocate Settings tab.
Program ID: Enter your Program ID value. To find this, select your brand name in the upper-left corner of your impact.com account. It appears under your program name.
Sale and Subscriptions Tracker: Input the Event Type ID for your Online Sale event. To find your Event Type ID:
From the top navigation bar, select
[User profile] → Settings.
Under Tracking, select Event Types.
Your Event Type ID is in parentheses next to the event name. e.g., Online Sale (xxxxxx)
Recurring Subscriptions Tracker: Leave this field blank.
Widget page URL: If you enter a URL, a button is added to your thank-you page that redirects customers to the referral widget page.
Widget button text: Enter the text for the button that redirects customers to the widget page. The default is "Refer a friend."
Save your changes when you're done.
A new Shopify page will be set up for you based on your selections. If you want to edit this page after setup, please reach out to our support team for assistance.
Select Save. You'll see a confirmation screen for the enabled integration, along with your impact.com account info.
Once you have fully integrated the impact.com API, you can begin end-to-end testing to ensure everything is working properly. Learn how to proceed with End-to-End Testing.
Troubleshooting
Modifications & reversals
Once integrated, you can modify and reverse items or entire orders in Shopify, and impact.com will update actions accordingly.
A few things to keep in mind:
A SKU represents an item within an order. For example, if an order has 1 item with the SKU 1ABC23 priced at $10.00 USD, the line item SKU amount would be $10.00 USD.
A line item SKU is a SKU with a quantity larger than 1 in an order (e.g., the order has multiples of the same item). For example, if an order has 2 items, both with the SKU 1ABC23 priced at $10.00 USD each, the line item SKU amount would be $20.00 USD. impact.com will always show the line item SKU amount.
When applying order-level reversals, the amount reversed from the order is distributed and weighted across all items within an order. In some cases, reversing certain amounts at the order-level could completely reverse an item if the item's price is less than the weighted amount that's applied to it.
When applying item-level reversals after an order-level discount has already been applied, the remaining amount for the item will be weighted/deducted across the remaining items.
Advocate programs don't recalculate rewards when an order is modified. Advocate can only cancel a reward after a full return, when the same event is sent again with
0in the revenue field. For Advocate setup, refer to Integrate with Shopify for Advocate.
Item-level reversals
When modifying a SKU in Shopify, impact.com will receive the updated Quantity and Amount and apply it to the item.
Example
Shopify reports an order to impact.com with two different SKUs that both have the same price:
1ABC23
$10.00 USD
9XYZ87
$10.00 USD
TOTAL
$20.00 USD
In Shopify, a $5.00 USD reversal is applied to this order, which is distributed across all SKUs in the order. It will now show in impact.com as:
1ABC23
$7.50 USD
9XYZ87
$7.50 USD
TOTAL
$15.00 USD
The $5.00 USD is split evenly across the price of the two items in the order.
Let's reverse an individual line item: SKU
1ABC23is fully reversed, which at its original price of $10.00 USD, means that $10.00 USD is reduced from the order.
1ABC23
$0.00 USD
9XYZ87
$5.00 USD
TOTAL
$5.00 USD
Since the item was already reduced at the order level, the remaining $2.50 USD that can't be removed from
1ABC23(since it was already reduced) is applied evenly to the rest of the items in the order.
One final step: reverse
9XYZ87, meaning $10.00 USD is reduced from the order. Since it's the only item left and has been reduced down to $5.00 USD, reversing this will refund the entire order in Shopify and reverse the action in impact.com.
Order-level reversals
Example
Shopify reports an order to impact.com with two different SKUs that both have the same price:
1ABC23
$10.00 USD
9XYZ87
$10.00 USD
TOTAL
$20.00 USD
In Shopify, a $5.00 USD reversal is applied to this order, which is distributed across all SKUs in the order. It will now show in impact.com as:
1ABC23
$7.50 USD
9XYZ87
$7.50 USD
TOTAL
$15.00 USD
The $5.00 USD is split evenly across the price of the two items in the order.
Going another step further, the order has a $15.00 USD reversal applied to it in Shopify. The order is fully refunded in Shopify and reversed in impact.com:
1ABC23
$0.00 USD
9XYZ87
$0.00 USD
TOTAL
$0.00 USD
How subscription orders are tracked
The app checks whether each order is a one-time purchase or a subscription order, then picks the event type and sets the Text2 parameter:
One-time purchase
Sale and Subscriptions Tracker
Not sent
First subscription order
Sale and Subscriptions Tracker
FIRST
Recurring subscription order (renewal)
Recurring Subscriptions Tracker
RECURRING
The app identifies subscription orders from the order tags your subscription app adds (for example,
Subscription First Orderfrom Recharge orfirst_orderfrom Bold), or from Shopify selling plans on the order's items.Text2is set per order, not per item. If an order contains both a one-time item and a subscription item, the whole order is sent withText2set toFIRST.Use
Text2to pay a different commission on first subscription orders than on one-time purchases.
Supported parameters
The table below lists all of the supported parameters of the integration — in other words, data that impact.com captures from Shopify.
CampaignId
8882
Also known as a Program ID, this is the ID number for your impact.com program/campaign.
ActionTrackerId
16027
Also known as the Event Type ID, this is the ID number for your impact.com event type.
EventDate
2020-06-18T14:33:49
Tracks the date that the action occurred.
ClickId
2uz3sQWFlxyJRcqwUx0Mo34VUkiyyO0tIzeG3U0
This is the Click Id associated with the action.
CustomProfileId
8f14e45fceea167a5a36dedd4bea2543
If you're tracking visitor identification, this is the Custom Profile Id associated with the visitor.
MediaId
12345
Value of the "Impact Partner" order attribute, if present.
CreatorCampaignId
67890
Value of the "Impact Creator Campaign" order attribute, if present.
OrderId
19796
Shopify's order number (e.g., #19796), submitted as the impact.com OID.
OrderPromoCode
SAVE20
The first discount code applied to the order.
CustomerId
3222174466122
If you're tracking and passing customer info, this is an ID number to reference the customer associated with the order.
CustomerEmail
38b85baa75385758d44d3dbfd97921c32e0d09a9
If you're tracking and passing customer info, this is the SHA1 hash of the customer's email.
CustomerEmailSHA256
9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
SHA256 hash of the customer's email. Sent only if the merchant allows sending customer data.
CustomerStatus
EXISTING or NEW
If you're tracking and passing customer info, this is the status of the customer associated with the order.
CurrencyCode
USD
This is the currency code for the currency recorded in the action.
IpAddress
1.1.1.1
The IP address associated with the action.
UserAgent
Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0
The user agent string associated with the action.
IntegrationSource
Impact_Shopify_Plugin
Hardcoded identifier for this integration.
Text2
FIRST
Subscription order type: FIRST on the first subscription order, RECURRING on later subscription orders (sent only when the Recurring Subscriptions Tracker is set). Not sent on one-time purchases. See How subscription orders are tracked.
Text3
4f7a2e19
Klaviyo profile ID. Sent only when Klaviyo is wired up.
Text4
5842819432
Shopify's numeric order ID (legacyResourceId). Sent via GraphQL conversion.
Text10
mystore.myshopify.com
The plugin's storefront_url. Sent when present.
Text22
US
Shipping country code (countryCodeV2). Sent when present.
For item-level data, the
{i}value is replaced with an integer (e.g., 1), and increased for each item that's reported to Impact. For example, If an order had two items, it'd reportItemSku1,ItemQuantity1,ItemCategory1,ItemSubtotal1, thenItemSku2,ItemQuantity2, etc.
ItemSku{i}
KS944RUR
The Shopify SKU number for an item in the action.
ItemQuantity{i}
1
The quantity amount for the first item in the action.
ItemCategory{i}
Wireless Bluetooth Headphones
The product's name/title in Shopify.
ItemSubtotal{i}
60.00
The subtotal amount of the item before taxes, shipping, and any other costs are added onto the total.
ItemName{i}
xTool M2 Color Craft Laser Cutter & Engraver
The product name of the item.
ItemBrand{i}
xTool
The brand associated with the item.
ItemPromoCode{i}
XTOOL20
The discount code applied to the item.
ItemDiscount{i}
19.69
The discount amount applied to the item.
ItemDiscountRate{i}
2.38
The markdown rate of the item: the discount amount as a percentage of the item price.
ItemOnSale{i}
true
Whether the item was on sale (true or false).
Track subcategory orders
While the Shopify app does not currently support passing a "subcategory" parameter directly at the order level, you can still utilize subcategories by leveraging your Shopify Product Catalog and setting up payout groups for subcategories.
Because the subcategory data is synced from your catalog rather than the order itself, you must use a specific field mapping when setting up your payout groups.
Set up subcategory-based payouts
To use subcategory data for your payout logic, follow these steps:
Verify your Shopify catalog sync: Ensure your Shopify Product Catalog is active and synced with your impact.com account. This allows the platform to automatically associate every ordered item with its corresponding catalog details.
Access Payout Groups: Within your contract configuration, set to your subcategory payout group. When creating a new rule, select the following field to trigger your subcategory logic:
Item catalog subcategory
Enter Subcategory Values: Input the subcategory names exactly as they are defined in your Shopify admin (e.g., "Accessories" or "Home Decor").
Verify via Reporting: To confirm the data is flowing correctly, reference the Advanced Action Listing Report. This report displays the specific subcategory data associated with each action, allowing you to audit your payout groups and ensure items are being categorized as expected.
Last updated


