0.13.9 • Published 4 years ago

mootracker v0.13.9

Weekly downloads
77
License
UNLICENSED
Repository
-
Last release
4 years ago

#Local NPM packages npm install

#NPM scripts ##Test To run tests first compile sources with npm script npm run build-watch-tests or directly tsc --noImplicitAny --outDir compiled/ --module commonjs test/*.test.ts --watch -t es5

Then run tests
  npm test

##Demo Demo consists of express server that serves to hosts. To run the demo you need 1. Add aliases to your hosts file 127.0.0.1 local.tracker.domain 127.0.0.1 local.client.domain 2. Bundle demo npm run bundle-demo 3. Start demo server npm run demo 4. Open browser at http://local.client.domain

##Bundle You can bundle js sources with npm script (that will produce dist/bundle.js) npm run bundle And you can bundle minified version (that will produce dist/bundle.min.js) npm run bundle-min

#Tracker API moo.identify({ email: string, name?: string }); moo.track(action: string, { key: value }); moo.track(action: string, { key1: value1 }, { key2: value2 });

moo.trackLogin(); // Will send LOGIN event with no context moo.trackPageView(); // Will send PAGE_VIEW event with { url: string }

// Events known on server side

// Will add item to order or increase the item count if already in order. // If there is no STARTED order it will be created moo.track('ADD_TO_ORDER', { itemCode: string }, { itemPrice: number });

// Will remove currently STARTED order and insert COMPLETED order moo.track('ORDER_COMPLETED')

0.13.9

4 years ago

0.13.8

4 years ago

0.13.7

4 years ago

0.13.6

5 years ago

0.13.5

5 years ago

0.13.2

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.6

6 years ago

0.10.5

6 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

7 years ago

0.10.1

7 years ago

0.10.0

7 years ago

0.9.5

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.9

7 years ago

0.8.8

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.7.5

7 years ago

0.7.6

7 years ago

0.7.3

7 years ago

0.7.2

8 years ago

0.5.2

8 years ago

0.4.11

8 years ago

0.4.10

8 years ago

0.4.9

8 years ago

0.4.8

8 years ago

0.4.5

8 years ago

0.4.3

8 years ago