Information to help you add dynamic tag management data elements.
In the Rules section, select Data Elements in the left navigation.
Click Create New Data Element.
Name the data element.
Choose the date element type.
Note that you can build an element based on any available object, element, cookie, or URL parameter. The Custom Script option lets you enter your own code to build the element.
Complete the remaining fields, which vary depending on the type of data element.
Choose the persistency of the data element value: Pageview, Session, or Visitor.
Save the data element.
Follow the instructions in QA, Approval, and Deployal Steps.
The example below creates a data element called “Authentication Status” to reflect whether the visitor is “loggedIn” or “loggedOut.” The website sets a cookie “authUser=loggedIn” when the visitor logs in. The data element uses a default value of “loggedOut” to represent the visitor’s status when the “authUser” cookie is not set. Note that the value is remembered only for the Pageview—as soon as the visitor logs in, the data element can change from “loggedOut” to “loggedIn.” This data element could be used to populate an mbox parameter with similar information or as a rule condition to trigger mbox calls.