This is the web tracker for apache-unomi ( http://unomi.apache.org/ )
It's included in unomi server, and can be served directly by unomi : https://github.com/apache/incubator-unomi/tree/master/extensions/web-tracker
This package can be used in a JS app to interact with unomi.
Adds tracker to your app :
npm add unomi-analytics
Then
unomiTracker.initialize({ 'Apache Unomi': { scope: 'my-app', url: 'http://unomi:8181' } }); unomiTracker.ready(function() { console.log("Unomi context loaded - profile id : "+window.cxs.profileId + ", sessionId="+window.cxs.sessionId); });
Then send events :
unomiTracker.page()