Configuring Analytics via Clevertap

Step 1: Create a new service "AppCleverTap" and add the following method to it.

var AppCleverTap = (function () {
  function _push(eventName, properties) {
    var mergedProperties = {};
    var hanselData = Hansel.logEvent(eventName, "ctp", properties);
    if(!properties) {properties = {};}
    mergedProperties = Object.assign(properties, hanselData);

    clevertap.event.push(eventName, mergedProperties);
  }

  return {
    push : _push
  };
})();

Step 2: For all those events on which you want to track the impact of Hansel changes, make the updates as suggested in the snippet below:

//If the original code was
clevertap.event.push(eventName, properties);

//it would get updated to
AppCleverTap.push(eventName, properties);

Step 3: Fire events from Test device:

Ensure that you fire the events which you added in Steps 1 and 2, from a test device. This can be done by invoking all the flows within the website, where the events have been added.

Once you have made the above changes, selected CleverTap goal events will contain information related to the interaction maps created on hansel dashboard.