Variables, functions, methods, and plug-ins overview
Analytics provides a number of variables to collect Analytics data. Variables in this section are split into several sections:
- Page variables are values that are typically used directly in reporting. Common page variables include props , eVars , and events .
- Config variables are settings values that help make sure the correct data reaches Adobe. Common config variables include trackingServerSecure , charSet , and linkTrackVars . Config variables typically do not populate dimension values.
- Functions and methods are pieces of code that perform a specific task when referenced. Common functions include t() , tl() , and clearVars() .
Variables and implementation methods
Order of operations
AppMeasurement libraries published by Adobe Analytics follow a specific order when sending data to Adobe. If you execute these tasks out of order, data can be incomplete.
- If your site uses a data layer, make sure all applicable variables are populated first. See Data layer for more information.
- Use the data layer to populate Analytics variables. If you use Launch, this task is easily accomplished by using data elements, then assigning the data element to a variable. See Data elements in the Launch user guide.
- Call the tracking function. Most AppMeasurement libraries use the t() method, however some mobile SDK's use track() . When the tracking function is called, all supported variables defined in the Analytics object are sent to Adobe in the form of an image request.
- Tab ( 0x09 )
- Carriage return ( 0x0D )
- Newline ( 0x0A )
- HTML tags (e.g. <b></b> or ™ )
Some variables have additional limitations or syntax requirements. For example, the products variable reserves semicolons and commas to delimit separate products and categories.