How to Push Data From Tealium Data Layer to Qualaroo Custom Properties


Tealium & Qualaroo integration lets you take advantage of consumer data obtained through surveys. You can trigger Qualaroo Nudges™ through JavaScript code snippets by setting custom properties and creating your own load rules.


In this article, you will learn how to pass data from a Tealium Data Layer into Qualaroo via the Custom Properties API.


Benefits of pushing data from the Tealium Data Layer to Qualaroo Custom Properties:


  • Target customers better by triggering Nudges™ based on customizable data

  • Reduce time and effort in identifying relevant user feedback by assigning researched values to targeting variables.

  • Take complete control over sharing data points with the data-mapping feature of Qualaroo integration with Tealium IQ.


To push data from Tealium Data Layer to Qualaroo Custom Properties:


Step 1: Add the following code to your Qualaroo Snippet. The code loops through values inside the utag_data variable on the page and passes them to the Qualaroo Custom Properties API.


window._kiq = window._kiq || [];
if (window.utag_data) {
  window._kiq.push(['set', Object.keys(window.utag_data).reduce(function(obj, key) {
    var newkey = key.toString().replace(/\s+/g, '_').replace(/[^\w]+/g, '_'),
        value = window.utag_data[key];
    obj[newkey] = (typeof value == 'object' ? value.join(',') : value);
    return obj;
  }, {})]);


NOTE: Special characters and spaces in keys are converted to underscores. If a value is an array of items, it is converted to a string, and items are delimited by a comma.


That is all about pushing data from Tealium Data Layer to Qualaroo Custom Properties.



© 2005 - 2024 ProProfs