@pjdw/analytics-web-sdk
v0.0.26
Published
PumpJack Dataworks Web SDK for the analytics platform
Downloads
1,240
Readme
Getting Started
See the current docs at https://docs.pumpjackdataworks.com/web.
Prerequisites
- You will need polyfills for fetch, Promise, and the Page Visibility API if you support any browsers that don't natively support these features.
- You will need a Pumpjack Dataworks API key in order for this SDK to do anything.
- This SDK respects the browsers "do not track" settings and will not send any analytics if DNT is enabled.
Installation
For npm/yarn users:
npm install @pjdw/analytics-web-sdk # for npm users
yarn add @pjdw/analytics-web-sdk # for yarn users
Browser script (adds pjdwsdk
globally):
Replace @1.0.0
with the current available version at https://www.npmjs.com/package/@pjdw/analytics-web-sdk.
<script src="https://cdn.jsdelivr.net/npm/@pjdw/[email protected]/dist/main.umd.js"></script>