@unbxd-ui/analytics-js
v6.3.1
Published
Unbxd Javascript SDK for Analytics tracking
Downloads
143
Readme
analytics.js
Unbxd Javascript SDK for Analytics tracking
Install dependencies
We are using yarn instead of npm to manage node modules. Use node version: v16.5.0
Install yarn, then:
$ yarn
Running tests
$ yarn run test
Development
$ yarn run start
Build
Runs bundler output to dist
$ yarn run build
Production Build
Runs with uglifier
$ yarn run dist
Deploy
AWS credentials need to be set as ENV variables
$ yarn run dist:s3
Site Specific Builds
add ENV
variable called SITENAME
which can be used as site name
$ SITENAME=unbxd yarn run build/dist/dist:s3
Generate analytics config file and corresponding site map file
node unbxdAnalyticsGenerateEventConfigList.js
Analytics sdk v2 config model links
Staging: https://libraries-stage.unbxdapi.com/ua/<<version_number>>/test-uaLibrary.js
Production: https://libraries.unbxdapi.com/ua/<<version_number>>/uaLibrary.js