Create a data element

Create a data element in dynamic tag management.

  1. Create a web property.
  2. In the web property, click Rules > Data Elements.
  3. Click Create New Data Element.
  4. Complete the following fields and options:
    Option Description

    The data element friendly name that a marketer can recognize. For example, Product ID.

    Note: The name is referenced by the rules builder, not an ID. If you change the name of the Data Element , you must change its reference in every rule that uses it.

    Specifies where the data is pulled from, such as JS Object, CSS Selector, Cookie, URL Parameter, or Custom Script.

    Depending on which type you select, different options display. See Types of Data Elements for more information and examples.

    Default Value

    A default element. This value ensures that the data element always has a value, even if a URL parameter does not exist or cannot be found by dynamic tag management.

    Note: If there is no value and no default value, then nothing is returned. Any variable referencing that data element won't get set. Note also that the default value field is ignored if it's a "custom code" data element.
    Force lowercase value

    Dynamic tag management automatically makes the value lowercased.

    Remember this value for

    How long you want dynamic tag management to remember this value.

    Valid values include:

    • Session: Session-based timing can vary depending on the implementation. Session data elements are set to the session cookie. However, this setting could be based on a web server or the browser. It is not related to the session used in marketing reports & analytics.

    • Pageview

    • Visitor

    See Data Elements for more information about how to use data elements.
  5. Click Save Data Element.