@pjdw/analytics-web-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.26 • Public • Published

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/analytics-web-sdk@1.0.0/dist/main.umd.js"></script>

/@pjdw/analytics-web-sdk/

    Package Sidebar

    Install

    npm i @pjdw/analytics-web-sdk

    Weekly Downloads

    392

    Version

    0.0.26

    License

    ISC

    Unpacked Size

    121 kB

    Total Files

    25

    Last publish

    Collaborators

    • mohammadfarooqi
    • bakermakerz