Decibel's Data Layer Management features allows to you run a number of actions based on data layer values. These actions include creating Page Groups, triggering Goals, and adding values to Custom Dimensions.
Data Layer Management can be found within Decibel by going to Settings > Data Layers. Please note that Data Layer Management is only available to users with Administrator privileges.
Adding Data Layers
To begin configuring Data Layer Management, click the Add Data Layer button, where you will be presented with a number of options such as in the image below.
You will need to input the variable name, such as dataLayer.pageType which is being used in the example, not including the value of the Data Layer variable. The actions will be named based on the value of the Data Layer variable.
Following this, add a description of the variable name that is being used before selecting an action, which can be one of the below.
- Create Page Group - This will create a new Page Group based on the value of the variable. In the example above, we are using dataLayer.pageType, which returns values such as PDP, Checkout and Home. Page Groups will be created and named after the values that are returned. If a group has already been created, then the page will simply be added to this group. You can select a limit to the number of Page Groups that will be created.
- Add to Custom Dimension - This will add the value of the variable to an existing Custom Dimension. You will be presented with a Custom Dimension dropdown which will allow you to select the relevant Custom Dimension that you wish to add the variable value to.
- Create Goal - Selecting this option will allow the creation of Goals based on variable values. The Goal Name will be taken from the value that is passed from the variable and will trigger upon changes in the value.
Once you are happy with your selection, simply click Save Data Layer in order to save your changes.
Editing Data Layers
To edit any Data Layer within Data Layer Management, simply click the Edit icon next to the relevant Data Layer, and ensure you click Save Data Layer once you have made your changes.
Deleting Data Layers
To delete any Data Layer within Data Layer Management, simply click the Delete icon such as in the image below. It is worth being aware