web-event-tracker-sdk
Version:
Auto-capture web events like page views, button clicks, and link clicks.
32 lines (23 loc) • 565 B
Markdown
# Web Event Tracker SDK
Auto-capture web events like page views, button clicks, and link clicks with minimal setup.
## Installation
```bash
npm install web-event-tracker-sdk
```
## Usage
```js
import EventTracker from 'web-event-tracker-sdk';
EventTracker.init({
apiKey: 'YOUR_API_KEY',
endpoint: 'https://your-collector.com/events',
});
```
## Features
- Auto-captures page views, button clicks, and link clicks
- Sends events to your endpoint
- Easy integration
## Build & Publish
```bash
npm run build
npm publish
```