Go Back

DataLayer – Introduction

January 29, 2018

The data layer is a global JavaScript object that you can use to communicate with Piwik PRO Tag Manager container. It makes it possible to add more information about events or variables, fire trigger based on chosen values (e.g. when order_value > 100) or on specific events (e.g. when the video has been seen). You can think of the data layer as a universal data structure that contains all the essential data about the events and information displayed on the page, in a format that can be utilized by third-party tools and scripts.

Creating data layer object is not mandatory as the tag manager will create one if necessary. There are certain scenarios (although not many) when the standard Piwik PRO Tag Manager tools are not sufficient. The data layer feature provides flexible and easy to use workflow for such cases.