Note: ⚠️⚠️
The URL format of your program must be set as a parameter. You can change the URL format by going to your program settings and editing the general parameters.
Track partner clicks
Where to install the code?
On all pages of your website (inside the <body>
tag).
Via the theme:
- WordPress Admin ➜ Appearance ➜ Theme Editor
- Select: header.php or theme.php
- Add the code inside the <body> tag.
Code to install:
Where to find your Program ID? Affilae Admin ➜ Configuration ➜ Tracking ➜ Integration with an Affilae module
Track sales
Where to install the code?
In the functions.php file of your WordPress theme.
Steps:
WordPress Admin ➜ Appearance ➜ Theme Editor
Click: Theme Functions (functions.php)
Add the code at the very top, after the <?php line.
Code to install:
Variable to update:
Replace YOUR_KEY with your conversion key.
Where to find your key? Affilae Admin ➜ Configuration ➜ Tracking ➜ Integration via an Affilae module
What the conversion code does
Data automatically tracked:
➜ Unique order number.
➜ Net amount (excluding taxes and shipping fees).
➜ Promo codes used.
➜ IDs of purchased products.
➜ Applied discounts.
➜ Final amount = Total price – Taxes – Shipping fees – Discounts
➜ Multiple products = list separated by “;”
➜ Multiple promo codes = list separated by “;”
Installation checklist
Installation:
- Tracking code added to all pages
- Conversion code added in functions.php
- Variables replaced with actual values
Test:
- Click and conversion tests performed
- Verified in the Affilae dashboard
- Test documentation followed
Help
Tracking code not working?
Check that the Program ID is correct
Make sure the code is present on all pages
Conversions not showing up?
Verify that the conversion key is correct
Check that the code is in functions.php
Test with a real order
Make sure WooCommerce is up to date
Need help?
Follow the Affilae test documentation
Contact support with details of your configuration