Data elements are Launch’s version of a data layer. They can store values from your own data layer object, cookies, local storage objects, query string parameters, page elements, meta tags, etc., which are mostly used in Adobe Launch rules, but can also be used in Extensions, this can greatly improve efficiency.
As we all know, many fields need to be configured in Extensions. In fact, these fields can be set through Data Elements. This section will explain leveraging Data Elements for Tags Implementation.
Take a simple example, deploy google analytics, because there are fewer fields to configure, forgive me I don’t want to set it too complicated. I want to cover up a simple example to make you better understand Leveraging Data Elements for Tags Implementation
Click Extensions, then search “google” under Catalog to install Google Analytics
You can see the following interface:
The main demonstration of the configuration in General, you can see a lot of settings have a small bucket or a database-like icon on the right, this means that you can use the Data Elements.
Let’s create two Data Elements, one to store the Tracking ID and one to store the value 100.
Create Data Elements
In the top navigation, click Data Elements and then Add Data Element:
A Data Elements setup interface will appear:
- Name——Name the data element.
- Extensions——Depends on what you have installed Extensions.
- Select Data Element Type——The available data element types are determined by the extension. Adobe Launch has a lot of built-in Data Elements.
- Default value——If you do not provide a value, no value is sent. Some people choose to enter something like “none” or “n/a” so they can determine what is sent if there isn’t a value. Different solutions deal with an empty variable differently. This creates consistency even if a value doesn’t exist.
- Force a lowercase value——Select whether to force a lowercase value.
- Clean text——Select whether to use clean text. The Clean Text option removes any whitespace from the beginning and end and replaces any successive spaces in the middle with single spaces. Use this option to normalize element values for easier matching.
- Storage Duration——The available choices are:None、Page view、Session and Visitor.
The specific configuration is as follows:
Tracking ID
100
Page Title
In order for you to better understand Data Elements, we create Page Title:
Leveraging Data Elements for Tags Implementation
Let’s go back to Google Analytics Extensions and click on the small bucket or data icon:
Then a page pops up where you can select the data element. Here we select the Tracking ID and click Select.
The data element is introduced, with two percent signs sandwiching the data element.
Similarly, other data elements are introduced, and the final effect is this:
Finally you can publish this.
Again, there are a lot of optional types in data elements. Here we use constants as examples.