Skip to content

timidak/JavaScriptSDK

Repository files navigation

Telemetry Deck JavaScript SDK

Support modern evergreen browsers which support cryptography.

Usage

For applications that use a bundler (like Webpack, Rollup, …)

import { signal } from 'telemetry-deck';

//
signal(
  // required options to identify your app and the user
  {
    appID: 'YOUR_APP_ID',
    userIdentifier: 'ANONYMOUS',
  },
  // custom payload stored with the signal
  {
    route: 'some/page/path',
  }
);

For situations where you just want to add a script tag and generate signals

UNPKG is a free CDN which allows you to load files from any npm package.

<script src="https://unpkg.com/@telemtrydeck/sdk/dist/telemetrydeck.min.js">

About

JavaScript Package for TelemetryDeck, a privacy-conscious analytics service for apps and websites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%