segment-analytics-web
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

📈 Segment analytics integration for web

Just another alternative of library for Segment analytics, written on TypeScript.

Usage 🎓

import segment from 'segment-analytics-web';

segment.initialize('your-segment-api-key');

segment.analytics.identify('97980cfea0067', {
  name: 'Woof Bark'
});

// window.analytics should be also available

Future plans 🧐

  • Loading options
  • Fully typed methods
  • Tests

Readme

Keywords

Package Sidebar

Install

npm i segment-analytics-web

Weekly Downloads

8

Version

2.2.0

License

MIT

Unpacked Size

9.1 kB

Total Files

7

Last publish

Collaborators

  • ky6uk