Map tag data elements to Analytics variables
Once you have a repository of tag data elements, you can assign them to Analytics dimensions.
Prerequisites
Map data layer objects to data elements: Make sure that you understand tag data elements, and that you have several to work with.
Create a solution design document: A solution design document is vital to staying organized. Following your solution design document simplifies the assignment of data elements to Analytics variables.
Assign data elements to Analytics variables
Publishing a tag library after following these steps allows you to use custom dimensions in Analysis Workspace. You can set Analytics variables globally, or in individual rules.
Set global variables
Global variables are ideal in cases where you want to set variable values on all pages where your data element exists.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click the desired tag property.
- Click the Extensions tab, then click Configure under the Adobe Analytics extension.
- Click the Global variables accordion, which reveals the interface to assign global variables.
Set variables in rules
Variables set in rules are ideal in cases where you don’t want variables set on every page. You define the criteria in the rule. See Rules in the Adobe Experience Platform tags documentation.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click the desired tag property.
- Click the Rules tab, then click on the desired rule (or create one).
- Click the Add button under Actions.
- Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables.
- Click the icon to the right of the desired Analytics variable. Your organization’s solution design document dictates what Analytics variable to use.
- Select the desired data element in the modal window. Click Select.
- The data element name is added to the text field surrounded by
%
signs. For example, if you named your data element “Page name”, you would see the string%Page name%
when assigning a data element to a variable.
%Hostname%%Pathname%
.Next steps
Page variables: Learn what page-level variables you can use in your implementation to get more out of dimensions in Analysis Workspace.
Configuration variables: Learn what configuration variables you can use in your implementation to unlock more features in Adobe Analytics.