Custom Global Variables

With "Custom Global Variables", you can use additional custom variables, on both pages and clicks events.

Activation Process

If you've reached the 20-custom-site-variable limit and if you can't use the custom page variables in your use case, you can ask for the activation of the Custom Global Variables.

They come in 4 packs :

  • 10 variables,
  • 30 variables,
  • 60 variables,
  • 100 variables.

Get in touch with your usual AT Internet contact (account manager or customer success manager) to get a quote. Please note that the activation requires a technical approval from our side. Depending on your traffic or if you're already using a Custom Analysis, the maximum number of allowed custom dimensions may be limited.

Formats

The available formats are either "Text" or "Value" and are activated by batches of 10 variables. E.g. if you subscribe to the 30-variable pack, you can get one of the following combinations:

  • 30 "Text" / 0 "Value"
  • 20 "Text" / 10 "Value"
  • 10 "Text" / 20 "Value"
  • 0 "Text" / 30 "Value"

Please note that the "Value" format accepts only 18 digits, including the decimal.

The "Text" format allows up to 4,000 characters. Please note that Data Query and Dashboards will cut the variables content after 255 characters. The 4,000 characters can only be extracted through the Reporting API & Data Flow API.

Main features

These custom variables can be correlated together. As opposed to custom site variables, Custom Global Variables can be used on clicks as well. These variables are shared by all of the sites.

  Custom Site Variables
Custom Global Variables
Maximum number
20 100
Scope Site Contract
API Labels
Unique per Site Shared by all the sites
Usable on Pages
Yes Yes
Usable on Clicks
No Yes
Mapping
Auto Data Manager

 

Where can I use those variables?

These custom dimensions can be used in:

  • Data Query
  • Dashboards
  • Reports
  • Reporting API
  • Data Flow API
  • Segments Manager

Data Manager Mapping

The Custom Global Variables have to be mapped with Data Manager. Here's a tag example to track a departure city, an arrival city and the travel price:

tag.page.set({
 customObject: {
  globVars: {
    cusvar1: 'Paris',
    cusvar2: 'London',
    cusvar101: 113
  }
}
});
tag.dispatch();

Please note that this is a suggestion of tracking code, you can store your variables in any object you want.

Then, in Data Manager, you have to retrieve the variable from the Custom Object before mapping it to the corresponding custom global variable :

How to rename the Custom Global Variables?

In the Settings, you will be able to provide a label and a definition to your Custom Global Variables. These labels are the names you will read in the Analyses and in Data Manager when mapping the data.

Have more questions? Submit a request