Affiliate portal tracking
Settings > Affiliate portal > Affiliate portal tracking
If you're looking to track affiliate signups, logins, and page visits, you can integrate either Google Tag Manager (GTM) or Facebook Pixel into your affiliate portal.

1. Google Tag Manager
a. Get your Container ID If you don’t already have a GTM account:
Go to https://tagmanager.google.com
Click Create Account
Set up a container for your Shopify store
Choose Web as the target platform
After setup, you will receive a GTM ID like
GTM-XXXXXXX
b. Enter your GTM ID
In Shopify admin, go to Affiliate Portal Tracking
Click on Google Tag Manager
Enter your GTM Container ID
(Optional) Enter a Signup Conversion Event name (e.g.,
affiliate_signup
)Click Save
c. Create a Custom event trigger
In GTM, go to Triggers → New
Choose trigger type: Custom Event
Event name: match the one you entered above (e.g.,
affiliate_signup
)Save the trigger
d. Create a Tag to fire on signup
Go to Tags → New
Choose a tag type (e.g., Google Ads Conversion Tracking, GA4 Event, etc.)
Link the trigger from step 3
Save and publish your container
2. Facebook Pixel
a. Create your Facebook Pixel ID
Go to Facebook Events Manager
Click Connect Data Sources → Choose Web
Select Facebook Pixel and click Connect
Follow the steps and you will get a Pixel ID (a long numeric string)
b. Enter your Pixel ID
In Shopify admin, go to Affiliate Portal Tracking
Click on Facebook Pixel
Enter your Pixel ID
(Optional) Enter a Signup Conversion Event (e.g.,
AffiliateSignup
)Click Save
c. Set up a Custom Event
After a signup, the app will send a
fbq('trackCustom', 'AffiliateSignup')
event (or your chosen event name)In Events Manager, go to Custom Conversions
Click Create Custom Conversion
Select your Pixel
Set Event Name = your custom event (e.g.,
AffiliateSignup
)Add rules if needed (e.g., URL contains
/signup-success
)Click Create
Last updated