Skip to content

Set Up an Affiliate Program with Affilae

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>

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.


The conversion script is automatically integrated by Ciklik during order confirmation. No additional configuration is necessary.

For each conversion, the following data is transmitted:

ParameterDescription
keyAffilae key (configured on the plan or product)
idOrder ID
amountOrder amount excluding tax
paymentPayment method (online)
voucherPromo code used (if applicable)
cvUser ID

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 voucher parameter will be empty.


If you want to customize your tracking via Google Tag Manager, the order data including the coupon is available in the dataLayer.

{
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: [...]
}
}
}
{
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: {...}
}
}
dataLayer VariableDescription
ecommerce.purchase.actionField.idOrder ID
ecommerce.purchase.actionField.revenueAmount including tax
ecommerce.purchase.actionField.taxTax amount
ecommerce.purchase.actionField.couponPromo code used