@copart/ui-analytics
Analytics package for UI
https://github.com/copartit/ui-analytics
Install
npm install @copart/ui-analytics
or
yard add @copart/ui-analytics
Import
import UiAnalytics from '@copart/ui-analytics';
Usage
- Setting window.disableUiAnalytics to false, will disable all analytics
Notes
- To test package locally inside another application preform the following:
- To Link:
- In root of npm repo (this repo) run 'npm link'
- In root of application to test in run 'npm link @copart/ui-analytics'
- To Unlink:
- In root of application to test in run 'npm unlink @copart/ui-analytics'
- In root of npm repo (this repo) run 'npm unlink'
- Use 'npm run prepublish' to ensure build completes and correct tarball contents; tarball should ONLY include package.json, README.md, dist/cjs/index.js, dist/esm/index.js
- core-js version should match in package.json and babel.config.js
- babel is configured to auto import only needed polyfills for es5 at build time, no need to import core-js in your src