Beruflich Dokumente
Kultur Dokumente
Table of contents:
Adform Unique Tracking Codes
Tracking of Variables
Transaction limitations
Older Versions
Tracking of Variables
If specific variables are to be tracked usually on thank-you or confirmation pages, e.g. the sale
amount, product name, order ID, etc. you have to pass the values from your sites variables to
predefined Adform variables. If done properly, this information will be passed to Adform servers.
Creating Orders (Items)
You can create one order (or one item) per tracking point call. To do this, an object order: {}
containing all order-related variables must be added to the _adftrack = {} object.
Example:
var _adftrack = {
pm: $campaignid;
id: $pointid,
order: {
sales: '100.70',
currency: 'GBP',
basketsize: '2',
country: 'UK',
agegroup: '26-35',
gender: 'F',
sv1: 'PayPal',
...
sv7: 'DHL',
svn1: '15.00',
svn2: '5.00',
// Variables below are accessible in variable data extracts only
orderid:'5625566',
var1: 'A5554',
...
var10: 'Some other data',
sv8: 'Some more data',
...
sv96: 'Even more data...'
}
};
valid
valid
valid
valid
valid
valid
valid
valid
valid
string
string
string
string
string
string
string
string
string
As you can see from the example above, you can use 14 predefined Report variables, 8 of which are
only accessible in variable data extracts due to their randomness. You are also allowed to use up to
101 variables to transfer custom data (of string or real number type).
Adding Products (Sub-items)
You can add several products (or several sub-items) per order. To do this, an array itms: [] can be
added to the order: {} object. Information about each product must be contained within a separate
comma-separated object. This way you can add more than one product per order (one tracking
point call).
Last saved: 2013.06.05
Example:
var _adftrack = {
pm: $campaignid,
id: $pointid,
order: {
... any order-related variables ...
itms: [{
categoryname: 'Shoes',
productid: 'SHOE5569826X',
productname: 'Black women shoes',
productcount: '2',
productsales: '50.35',
sv1: 'PayPal',
...
sv7: 'DHL',
svn1: '15.00',
svn2: '5.00',
// Variables below are accessible in variable data extracts only
sv8: 'Some more data',
...
sv89: 'Even more data...'
},
{
... second product ...
}]
}
});
As you can see from the example above, you can use 8 predefined Report variables for tracking
product parameters. You are also allowed to use up to 91 variables to transfer custom data (of
string or real number type).
Note: Only integer number type is supported for basketsize and product count variables.
Additionally, if float values are sent, it will cause data loss for these 2 variables.
Transaction limitations
Maximum URL length of a tracking point is 4000 symbols per single page. Because of the database
limitation, only first 3000 symbols can be stored (i.e. everything from 3000th symbol will be
cropped), that means the more Report variables the less data they can carry.
Part of a transaction (up to 800 symbols) contains technical information with dynamic length fields
(e.g. Cpref - referrer URL, which length depends on visited page URL). Other part contains variables
names, data - which are also dynamic length fields as well as separators. That is why we can give
only approximate maximum variable lengths:
Maximum Report variable length is ~3000 symbols, when 1 Report variable is used per page
(e.g. tracking point).
Maximum Report variable length is ~13 symbols, when maximum number of Report
variables (200) are used.
Note: Special symbols can increase Report variable length, because all special symbols are
encoded, e.g. space is replaced by %20, so we have 3 symbols instead of one.
to
be
Older Versions
Previous version of unique tracking points using adf.track, adf.createOrder({}) or
adf.addProduct({}) functions is documented here (PDF).