It is possible to receive, on the javascript side, notifications about the availability of data relating to the segments of the user who is browsing the site.
To do this, you need to register your own javascript function on the Blendee Tracker event listener.
The function must have the following prototype:
function nameFunction ( event, date)
For example, you can use the following code to register your function:
Sbntrk.getAsyncTracker().addEventTrackerListener(trackerEvent); function trackerEvent(e, data) { if (e == "audience") { console.log("User's segments received: " + JSON.stringify(data)); } }
Was this content useful?
Thanks for contributing!