Set Up an Affiliate Program with Affilae
Adding the Tracking Script
Section titled “Adding the Tracking Script”Enter your Affilae Identifier in your site’s marketing settings.
This is your ID found in the Affilae tracking script.
<script type="text/javascript"> var _ae = { "pid":"11e8b9c2ccc34e0e46c7665a", // your Affilae identifier }</script>You can also use Google Tag Manager to add the tracking script.
- Create an Affilae tag
- Select custom HTML for the tag
- Paste the script provided by Affilae
- Select the trigger for all pages on your site
- Save and submit by entering the name of the tag version created
Only the tracking script needs to be added. It is not necessary to add the conversion script (this is automatically added to your site by the Ciklik application, which will detect the addition of the tracking script).
If you don’t want to use Google Tag Manager, you can add it directly in the Header field, below the CSS windows in the appearance tab, when you click on My Sites, then on Edit.
<script type="text/javascript"> var _ae = { 'pid': '', 'advertiserFirst': 21600, // 15 days in mins 'allowSiteUnder': false, };</script>Configuring Affiliate Programs
Section titled “Configuring Affiliate Programs”Affilae provides you with a key (a sequence of numbers and letters) for your affiliate program.
Example: In Affilae, find your Key: 11e8b9c2ccc34e0e46c7665a-59e8b9c2ccc34e0e46c7666d
This is the Affilae Tag that you can enter in the back office in the Affilae tag section for your plans or shop products, depending on what you want.
Different keys can be entered for plans and shop products to set up different commission rules.
Conversion Tracking (Native)
Section titled “Conversion Tracking (Native)”The conversion script is automatically integrated by Ciklik during order confirmation. No additional configuration is necessary.
Data Sent to Affilae
Section titled “Data Sent to Affilae”For each conversion, the following data is transmitted:
| Parameter | Description |
|---|---|
key | Affilae key (configured on the plan or product) |
id | Order ID |
amount | Order amount excluding tax |
payment | Payment method (online) |
voucher | Promo code used (if applicable) |
cv | User ID |
Promo Code / Coupon Tracking
Section titled “Promo Code / Coupon Tracking”Promo code tracking is automatic. When a customer uses a promo code for their order, it is automatically transmitted to Affilae via the voucher parameter.
This allows you to activate Affilae’s conversion tracking via promo code feature and automatically attribute commissions to ambassadors based on their code.
Note: If no promo code is used, the
voucherparameter will be empty.
Data Available in the dataLayer (for GTM)
Section titled “Data Available in the dataLayer (for GTM)”If you want to customize your tracking via Google Tag Manager, the order data including the coupon is available in the dataLayer.
order.confirmation Event
Section titled “order.confirmation Event”{ event: "order.confirmation", ecommerce: { purchase: { actionField: { id: "ORDER_ID", affiliation: "SITE_NAME", revenue: 99.00, tax: 16.50, shipping: 4.90, coupon: "PROMO_CODE" }, products: [...] } }}purchase Event
Section titled “purchase Event”{ event: "purchase", ecommerce: { currency: "EUR", value: 99.00, tax: 16.50, total_discount: 10.00, transaction_id: "ORDER_ID", coupon: "PROMO_CODE", items: [...], user_data: {...} }}Available GTM Variables
Section titled “Available GTM Variables”| dataLayer Variable | Description |
|---|---|
ecommerce.purchase.actionField.id | Order ID |
ecommerce.purchase.actionField.revenue | Amount including tax |
ecommerce.purchase.actionField.tax | Tax amount |
ecommerce.purchase.actionField.coupon | Promo code used |