Shopify

📋Before You Implement
  • Have your CJ-specific IDs ready before you begin: Enterprise ID, Action ID, and Tag ID. These are provided by your CJ Client Integration Engineering (CIE) team.
  • Ensure you have admin-level access to your Shopify store before starting.
  • Your unique tracking script must be copied directly from the CJ Network App within your Shopify Admin — do not use example code from screenshots.
  • CJ cannot provide legal guidance on privacy compliance. Consult your legal team for jurisdiction-specific requirements before configuring privacy settings.

Prerequisite

Please ensure you have the correct permissions before starting.

If you are a Shopify Partner or Collaborator, an admin can grant the required permissions by navigating to Settings → Users and Permissions, selecting the collaborator, and enabling View customer events and Manage and add custom pixels under Store permissions.

Manage Custom Pixels permission screen

Also update your browser settings to allow the Shopify Admin page to send pop-ups and use redirects. We recommend using Google Chrome.

Allow pop-ups and redirects in browser

Step 1 — Install the CJ Network App

Install the CJ Network App directly from the Shopify App Store to add affiliate tracking to your store.

1
Log into your Shopify Admin panel.
2
Click the installation link provided by your CJ CIE team, or find the CJ Network App in the Shopify App Store.
3
On the app listing page, click Install.
4
On the "Install app" confirmation screen, click Install again to authorize.
Install app confirmation screen
📘

If the app page doesn't load, check for pop-up blockers in your browser's address bar and ensure pop-ups and redirects are allowed for apps.shopify.com


Step 2 — Configure Plugin Settings

After installation, configure your CJ credentials and tax settings before copying the tracking code.

2.1 — Add Your Account IDs

1
After installation completes, scroll to the bottom of the CJ Network App page and click Edit.
2
Enter the credentials provided by your CJ CIE team: Enterprise ID, Action ID, and Tag ID.
Click Edit on the CJ Network App page Enter Enterprise ID, Action ID, and Tag ID

2.2 — Configure Tax Settings

1
Determine the correct tax setting based on how your Shopify product prices are configured.
2
Check the tax exclusion box if your Shopify product prices include taxes. Leave unchecked if your product prices exclude taxes.
⚠️

CJ calculates commissions based on pre-tax amounts. Incorrect tax settings will cause inaccurate commission calculations for your publishers.

2.3 — Save Configuration

1
Scroll to the bottom of the screen and click Save to apply your settings.
Save your configuration

2.4 — Copy Tracking Code

1
Locate the CJ Tracking code snippet section within the CJ Network App.
2
Click Copy To Clipboard.
3
Keep this code available — you will paste it in Step 5.
🔔

If you need custom tracking code modifications, use the script provided directly by your CJ CIE team instead of the default snippet.


Step 3 — Create Custom Pixel

Shopify uses a Custom Pixel to execute the CJ tracking code at the browser level. Create the pixel container before adding the tracking code.

1
In your Shopify Admin, navigate to Settings → Customer events.
2
Click Add custom pixel (or use the direct link provided in the CJ Network App's "Next Steps" section).
3
On the next screen, click Add custom pixel to confirm.
4
Name the pixel exactly: cj-network-integration-pixel. The pixel name must match exactly — it is referenced during testing.
5
Click Add Pixel to create the container.
Add custom pixel in Customer events Name and create the pixel

Step 4 — Configure Privacy Settings

Shopify requires privacy setting selections for all Custom Pixels. Review CJ's data practices before making your selections.

1
Within the cj-network-integration-pixel setup screen, review the privacy settings options presented by Shopify.
2
Select the appropriate settings for your jurisdiction. CJ uses only pseudonymized personal data for purchase attribution and does not use cookies or customer information for ad customization.
Customer privacy settings screen
🚧

CJ cannot provide legal guidance on privacy compliance. Consult your legal team for jurisdiction-specific requirements before confirming your settings.


Step 5 — Add Tracking Code

Paste the CJ tracking script copied in Step 2.4 into the custom pixel's code field.

1
Within the cj-network-integration-pixel editor, locate the Code input field.
2
Delete any pre-populated placeholder instructions from the code field.
3
Paste the custom script you copied from the CJ Tracking code snippet section in Step 2.4.
4
Click Save in the top-right corner of the menu bar.
Paste tracking code and save

Step 6 — Activate Custom Pixel

After saving your tracking code, connect the pixel to make it active on your storefront.

1
After saving, click Connect to initialize the Custom Pixel.
2
On the confirmation dialog, click Connect again to confirm.
3
Confirm the pixel status now displays as Active.
Connect the custom pixel

Step 7 — Test Integration

After connecting your pixel, verify it is loading correctly before proceeding to full end-to-end testing with your CJ team.

7.1 — Verify Pixel Installation

Use Shopify's built-in Pixel Helper to confirm the pixel container is active on your storefront.

1
In your Shopify Admin, navigate to Settings → Customer events and open cj-network-integration-pixel.
2
Click the Test button.
3
A new browser tab opens with your live storefront. The Pixel Helper window will appear in the corner of the page.
4
Confirm that the helper shows cj-network-integration-pixel with a green "Loaded" status on all pages.

7.2 — End-to-End Testing with Your CJ Team

Once you've confirmed the pixel is loading, work with your CJ CIE team to validate the full data flow.

1
Work with your CJ CIE team to place test orders through your Shopify storefront using CJ affiliate links.
2
Verify that conversion events appear correctly in CJ's reporting dashboard after test orders are placed.
3
Confirm that order values, product data, and attribution all match between your Shopify Admin and CJ's records.

Need help?

Submit a support ticket for account-specific support.

How to submit a ticket →