Adform - GTP Implementation Standard
Adform - GTP Implementation Standard
Adform Standard
Tracking Code
Implementation
Table of Contents
Introduction
Pagename Parameter
Implementing Variables
2016.02.08
Introduction
Adform Standard Tracking Code is used to track the visits on your website either on one specific page
or the whole website at once.
The Adform Tracking Code utilizes javascript functions, which gather visits, visitor information (e.g.
browser type, operating system or screen size) and sends this information along with campaign id
and defined name of a page to Adform servers.
2016.02.08
Pagename Parameter
As the Global Tracking Script is dedicated to track all the pages of a website, it is necessary to identify
which page was actually visited. The pagename parameter is used to identify the pages of your
website.
Note: The pagename parameter must be implemented in order for the tracking set up to
function properly.
The pagename values define a logical path (category tree) to a page, which makes it easy to report
and retarget by specific pages.
The parts of a code which should be replaced with values are marked in yellow throughout this
document.
Example part of the code:
pagename: encodeURIComponent('<WebsiteName>|<SectionName><PageName>'),
divider: encodeURIComponent('|')
CMS variables;
URLs structures;
Bread-crumb structure;
Page title.
Note: there should not be any session unique information included in this variable no session
IDs, product IDs, search strings, random numbers, etc., as it could cause you reaching the 10000
unique values limit.
2016.02.08
Implementing Variables
If specific variables are to be tracked usually on conversion 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 and will be used for
analysis or retargeting.
Order level variables
To collect information which is only one time used per one order like order ID, sales, country, etc.,
we use predefined variables which are added to the order: {} object. The values must be dynamically
passed from your side.
2016.02.08
var _adftrack = {
pm: $campaignid,
pagename: encodeURIComponent('Eshop.com|Electronics|Computers|Laptops'),
divider: encodeURIComponent('|'),
order: {
sales:'100.70',
//values real number
orderid: 'abc123'
//values any valid string
}
};
You can add as many different products are there are in one order to use the above structure.
The variables can be included to a product view page also.
2016.02.08
Info: If you have any questions regarding the tracking set up contact [email protected]
2016.02.08