GetFeedback Digital for Web offers several ways in which you can combine user feedback with your data layer. A data layer is a layer of information about your user or your application, which is accessible from the browser during the user's visit. Please find more information about a data layer here.
During the user's stay on your website, you can exchange information between GetFeedback Digital and your data layer. This allows you to combine the input a user provides through GetFeedback Digital with data from other sources.
Adding information from your data layer to GetFeedback Digital feedback
One of the ways in which data can be exchanged between GetFeedback Digital and your data layer is by pushing data from your data layer to GetFeedback Digital through our JavaScript API. This is a JavaScript snippet, which can be added to the existing GetFeedback Digital code on your website.
The information from your data layer will then be included in feedback and campaign results as custom variables. You will also be able to target campaigns according to the information from your data layer. For more information, please have a look at the following articles:
Depending on the data layer implementation you're using, you're also able to assign your data layer as Custom Variable Object. By assigning the data layer as Custom Variable Object, you'll have *all* of the data layer information available in GetFeedback Digital. Below, you'll find some of the compatible data layers which can be used as Custom Variable Object. Keep in mind that compatibility of your data layer as the Custom Variable Object depends on the implementation you have. Always make sure to thoroughly test the code before implementing.
//Send data to Usabilla using Google TagManager
window.usabilla_live('data', {
'custom': dataLayer[0]
});
//Send data to Usabilla using Tagman
window.usabilla_live('data', {
'custom': tmParam
});
//Send data to Usabilla using Dynamic Tag Manager
window.usabilla_live('data', {
'custom': _sattelite
});
//Send data to Usabilla using Qubit
window.usabilla_live('data', {
'custom': universal_variable
});
//Send data to Usabilla using Tealium
window.usabilla_live('data', {
'custom': utag_data
});
Push feedback and campaign results into your data layer
When a user leaves feedback on your website, the feedback can be sent to your data layer through our Event Callbacks. This way, you can connect the feedback a user provides to events measured in your quantitative analytics suite or pass the info on to other analytics tools. The following article provides an in-depth explanation on how you can make sure that your feedback is pushed to your data layer.
Tip: if you're using Relay42 as your tag management system, you may want to use our out-of-the-box integration to push information to Relay42's data layer, or even target GetFeedback Digital campaigns according to information from the data layer.
Next steps
Once you integrated GetFeedback Digital and your data layer, many doors are opened towards optimizing your users' experience on the website. You can use the information from your data layer to contextualize your users' feedback and make it even more valuable. Furthermore, you can act on an individual user's feedback immediately, making their experience more relevant and even more personalized.