-
Notifications
You must be signed in to change notification settings - Fork 0
Site and page variables
Before using variable addition methods, please make sure you have initialised the AT Internet JavaScript Tracker and selected the Page plugin from the Tag Composer interface.
The objective of these variables is to be able to associate information specific to your activity (interface language, load times, number of articles per page, etc.) with your site.
By way of these variables, you can evaluate the performance of specific pages of your site, notably those offering fields to be filled out (purchase forms, sign-up forms, subscription forms, etc.). In concrete terms, you can retrieve all values of these form fields, then use an analysis to view the form’s status after submission (attempts to fill out the form that do not go through are not taken into account).
The Tracker has a “customVars.set()” method enabling the definition of the variables’ values. This method takes, as a parameter, an object whose properties are as follows:
- site: Object containing IDs and names associated with site variables.
- page: Object containing IDs and names associated with page variables.
Sending identified visitor information requires the presence of a page tag: “tag.page.set()” or “tag.page.send()”.
- Tagging a page with site variables:
var tag = new ATInternet.Tracker.Tag();
tag.page.set({
name:'pageName'
});
tag.customVars.set({
site: {
1: '[site1]',
5: '5',
20: '[site20]'
}
});
tag.dispatch();- Tagging a page with page variables:
var tag = new ATInternet.Tracker.Tag();
tag.page.set({
name:'pageName'
});
tag.customVars.set({
page: {
1: '[page1]',
5: '5',
20: '[page20]'
}
});
tag.dispatch();- Tagging a page with site and page variables:
var tag = new ATInternet.Tracker.Tag();
tag.page.set({
name:'pageName'
});
tag.customVars.set({
site: {
1: '[site1]',
5: '5',
20: '[site20]'
},
page: {
1: '[page1]',
5: '5',
20: '[page20]'
}
});
tag.dispatch();- Tagging variables with the “page.send()” method:
Tagging variables via the “page.send()” method requires passing the “customVars” object directly as a parameter:
var tag = new ATInternet.Tracker.Tag();
tag.page.send({
name:'pageName',
customVars: {
site: {
1: '[site1]',
5: '5',
20: '[site20]'
},
page: {
1: '[page1]',
5: '5',
20: '[page20]'
}
}
});| Type | Example |
|---|---|
| Value / ID / Duration |
// [...]
site: {
1: 123
}
// [...]| | Text |
// [...]
site: {
1: '[abc123]' // text between brackets []
}
// [...]| | Date |
// [...]
site: {
1: 20180810 // yyyymmdd
}
// [...]| | Decimal |
// [...]
site: {
1: 2.5
}
// [...]| | Country |
// [...]
site: {
1: '[de]' // 2 letters country code between brackets []
}
// [...]|
Last update: 13/08/2018
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android