Back

The Lower-Casing extension sets data layer values to lower-case. This is a best practice for data consistency.

See the full list of available extensions.

In this article:

Table of Contents Placeholder

Prerequisites

How it Works

This extension uses the JavaScript method String.toLowerCase() to convert data layer values to lower-case. The extension can be applied to all data layer variables or specific ones.

Using the Extension

Once the extension is added, the following configuration options are available:

  • All Variables to Lower Case: (Default: Yes)
    • Yes (default): sets all variables to lower-case.
    • No: only set specific variables to lower-case.
      Select a variable from the drop-down.
      Click the + button to add more variables, or the - button to remove variables.

Examples

In this example, lower-casing is performed on a specific variable, search_keyword . This is a common practice to ensure that that all tracked searches are case-insensitive.

Step to configure:

  1. Add the Lower-Casing extension.
  2. Set a title.
  3. Set All Variables to Lower Case to "No".
  4. From the variable drop-down, select "Search Keyword".

lowercasing.png