Implement the dataLayer
Steps to implement the dataLayer
Setting up the DataLayer Configuration:
- Go to the DataLayers under Dynamic Items menu. Create a new DataLayer setting.
- Give a name to the DataLayer and select all the fields you want to show in the dataLayer object.
- To override the field names for the dataLayer object, go to the "Configuration Fields" tab and input the override value under the field name.
- To enable the transactionProducts data in the dataLayer, mark the checkbox Transaction Products.
- Save the Configuration.
Enabling DataLayer in the Flow
- Go to the Flows tab and select the flow.
- Select the DataLayer from the dropdown menu.
- In the widgets enable the dataLayer and set an event name (in the new tab)
- Save the configuration.
DataLayer will only work if GTM is enabled in the Site Settings.
dataLayer in the console in developer tools. An easy way to check the dataLayer object is to type