۶Ƶ

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.

  1. Log in to using your ۶ƵID credentials.
  2. Click the desired tag property.
  3. Click the Extensions tab, then click Configure under the ۶Ƶ Analytics extension.
  4. 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 ۶Ƶ Experience Platform tags documentation.

  1. Log in to using your ۶ƵID credentials.
  2. Click the desired tag property.
  3. Click the Rules tab, then click on the desired rule (or create one).
  4. Click the Add button under Actions.
  5. Set the Extension drop-down list to ۶Ƶ Analytics, and the Action Type to Set Variables.
  6. Click the Data element icon to the right of the desired Analytics variable. Your organization’s solution design document dictates what Analytics variable to use.
  7. Select the desired data element in the modal window. Click Select.
  8. 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.
TIP
You can concatenate data elements in the same variable. For example, if you have a “Hostname” data element and a “Pathname” data element, you can combine both in a single variable using %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 ۶Ƶ Analytics.

recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690