A data layer is an information layer, containing information about your visitors. It can hold valuable information about your visitors and their actions on your website. In a well-constructed data layer this information can easily be accessed from the browser and therefore be accessed by other tools such as GetFeedback Digital. Often data layers are closely connected to your tag management system and can thus be used to fire all sorts of tags to a specific target audience.
The data layer can hold all sorts of information including – but not limited to:
You can also use your data layer to push information to GetFeedback Digital or to show a campaign to a specific target audience. Adding information from your data layer to GetFeedback Digital can provide you with extra context to your feedback items and campaign results. Also, you can target surveys to visitors according to information in the data layer.
The information from your data layer can be included in feedback and campaign results as custom variables. You will also be able to target campaigns using information from your data layer.
By setting your data layer as a custom variable, you'll have all of your data layer information available in GetFeedback for Web.
Below, you'll find some common ways to send data as custom variable objects.
You can also send information from your website’s data layer to data analytics tools like Google Analytics or Innometrics using GetFeedback for Web.
The snippet below helps you send results to Google Analytics whenever a visitor completes a campaign on your website.
Add the code below to your website, replacing the bold parts with your information.
Now, when a visitor fills in a campaign, the following information will be sent as an Event to Google Analytics: