Aucune catégorie trouvée.

C2S – Manual

Notes: ⚠️⚠️⚠️
  • Add the Affilae Tag on all the pages of your website.
    This Tag will allow tracking of your partners’ clicks and their conversions.
  • Trigger the conversion tag to track a sale or a lead.
  • The URL format of your program must be set as a parameter.
    You can edit the URL format in your program settings, under General Parameters.
  • ⚠️ Do not send personal data: examples: name, surname, or e-mail.
 
Install the Tracking Tag

 

Where to place it?
  • On ALL pages of your website
  • Inside the <head> section or just after <body>

 

Code to install:
<script type="text/javascript">
var _ae = {
"pid":"68b0322bd9fccaf2fc398452",
};
(function() {
var element = document.createElement('script'); element.type = 'text/javascript'; element.async = true;
element.src = '//static.affilae.com/ae-v3.5.js';
var scr = document.getElementsByTagName('script')[0]; scr.parentNode.insertBefore(element, scr);
})();
</script>
 
What this tag does:
  • Detects when a visitor comes from an affiliate partner
  • Protects against fake clicks
  • Tracks the visitor’s journey

 

Install the Conversion Tag

 

Where to place it?
  • Only on the order confirmation page.

Note: To use this tag, the tracking tag must be implemented.

<-- Affilae Conversion Tag -->
<script type="text/javascript">
var aeEvent = {};
/* {{KEY}} must be updated for each rule */
aeEvent.key = '{{KEY}}';
aeEvent.Conversion = {};
/* Values below must be updated */
aeEvent.Conversion.id = '{{ID}}';
aeEvent.Conversion.amount = '{{AMOUNT}}';
aeEvent.Conversion.payment = '{{PAYMENT}}';
aeEvent.Conversion.voucher = '{{VOUCHER_CODE}}'; // List of voucher_id seperated by ;
aeEvent.Conversion.subid = '{{SUB_ID}}';
aeEvent.Conversion.customer = '{{CUSTOMER_ID}}';
aeEvent.Conversion.currency = '{{currency}}';
aeEvent.Conversion.product = '{{PRODUCT_ID}}'; // List of product_id seperated by ;
('AeTracker' in window)
? AeTracker.sendConversion(aeEvent)
: (window.AE = window.AE || []).push(aeEvent);
</script>
 
Installation Checklist
 
Before starting:
  • I have my Affilae Program ID
  • I have my conversion key
  • I have configured the URL format in my dashboard

 

Installation:
  • Tracking tag installed on all pages
  • Conversion tag installed on the confirmation page
  • Variables replaced with dynamic values
  • Test carried out with a test order

 

Important checks:
  • No personal data is transmitted
  • Tags load correctly (check in developer tools)
  • Conversions appear in my Affilae dashboard

 

Help

 

The tag is not loading?
  • Check that your Program ID and KEY are correct.
  • Check your security settings (CSP).

 

Conversions are not showing up?
  • The tracking tag must be installed AND functional (must be tested).
  • Verify that all mandatory parameters are filled.
  • Test with a real transaction through a tracked link.

Need help?
  • Check your Affilae dashboard
  • Contact Affilae technical support

 

Parameters to be filled in:

VariableObligatoireValeur
KEYYesThe key is provided on the “conversion code” page, which can be accessed from the “Config” menu of your affiliate program. e.g.5f04fe700000000000000000-5f04fe700000000000000000
IDYesEnter a unique identifier for this parameter. The simplest option is to use the order number. If you are using this code for newsletter subscriptions and do not have a unique identifier, we recommend using a hash (e.g., MD5) of the user’s email address, for example.
AmountYes for the salesTotal amount of the order EXCLUDING TAX, which will be used as the basis for calculating the commission and the revenue generated. e.g. 123.45
PaymentYes, if the conversion is linked to a paymentIf conversions are subject to payment, specify the method chosen by your customer; otherwise, leave this field blank:

  • online for online payment
  • bankwire for payment by bank transfer
  • other for a completely different type of payment
CustomerYes, if Revenue Share is enabled.Your client ID if Revenue Share is enabled. Please use an ID that will not change over time, preferably the ID number used in your database. Leave blank if you do not use Revenue Share.
CvNoCustom variable that will be reported with the conversion and available in the interface and API. It allows you to assign your own ID to a conversion.
VoucherNoVariable used to identify the promo code associated with a sale. The code is case sensitive. Use `;` as a separator to add multiple codes.
ProductNoList of product IDs, separated by `;`.