Affiliate Tracking with Google Tag Manager
Date Published
- Twitter
- Facebook
- LinkedIn
- Instagram
- Copy Link

Introduction
Track affiliate referrals and conversions for GLP Winner with this easy-to-use Google Tag Manager template.
This is the recommended no code integration if you use Google Tag Manager.
What You'll Need
- Your Provider ID from GLP Winner
- Google Tag Manager (GTM) account
Step 1: Install the GLP Winner Template
Download template.tpl from this repository.

In GTM, go to Templates → New


Click the menu (⋮) → Import. Select the downloaded template.tpl file

Save the template

Step 2: Create Initialization Tag
Go to Tags → New

Choose "GLP Winner Affiliate Tracking" as tag type

- Configure:
- Tag Type: Initialize GLP SDK
- Provider ID: Your numeric Provider ID from GLP Winner
- Test Mode: Enable for testing (disable for production)
- Set trigger to "All Pages"
- Name it "GLP Winner - Initialize"
- Save

Step 3: Create Conversion Tag
- Create another new tag
- Choose "GLP Winner Affiliate Tracking" as tag type
- Configure:
- Tag Type: Track Conversion
- User Email: {{Your Email Variable}} (optional)
- Conversion ID: {{Transaction ID}} (optional)
- Load GLP Script: Uncheck (script already loaded by init tag)
- Set triggers for your conversion events:
- Form submissions
- Thank you pages
- Purchase completions
- Name it "GLP Winner - Conversion"
- Save

Step 4: Test
- Enable Preview mode in GTM

- Get a test UUID here
- Visit your site with a test click ID: ?glp_click_id={{TEST_UUID}}. Should look something like yoursite.com?glp_click_id=ad130179-664f-45e8-9beb-2f2d0d9bfbed

- Check browser console (Right Click -> Inspect -> Console Tab) for:
- "GLP Winner: Initializing with config"
- "GLP Winner: Script loaded successfully"
- "GLP Winner:Tracking SDK initialized"
- "GLP Tracking Session token set: {{SOME_UUID}}"

- Complete a conversion action
- Verify "GLP Winner: Tracking conversion" in console

Step 5: Publish
Don't forget to change back Test Mode to disabled in your GLP Winner - Initialize tag from Step 2.

Publish in GTM. That's it!


Here's the README if you'd like to learn more about the template. Here are resources if you'd like to explore a server-side postback solution or learn more about the Javascript SDK.
Keep Reading
Curated by

GLP Winner helps people compare providers and compounding pharmacies for GLP-1 treatment and weight loss care.We aim to improve the process of navigating the GLP-1 space with education, support, and tools. We do not sell or provide medical services directly.