tree: 567d3e1815e49e362f3cb50a167fe88eaa33c2c1 [path history] [tgz]
  1. dist/
  2. src/
  3. LICENSE
  4. package.json
  5. README.md
  6. snippet.js
  7. snippet.min.js
  8. yarn.lock
extensions/web-tracker/javascript/README.md

Apache Unomi Web Tracker

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.

Getting started

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()