Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Ky6uk/segment-analytics-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION NOTICE

Since v2 Segment now has it's own well-maintained library written using TypeScript.

Please check the original repository for the details.

📈 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