1.0.0 • Published 7 months ago

@ref247/tracker-embed v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

@ref247/tracker

Official client-side SDK for tracking affiliate clicks and page views with Ref247.io.

✨ Features

  • Automatic fingerprinting with FingerprintJS
  • Simple API to track clicks or page views
  • Optional DOM-based tracking by selector
  • Lightweight and framework-agnostic

📦 Installation

npm install @ref247/tracker-embed

Usage Example

import { Ref247Tracker } from '@ref247/tracker';

const tracker = await Ref247Tracker.init();

tracker.trackPageView('https://example.com/landing');
tracker.trackClick('https://example.com/signup');

// Or bind to a DOM element:
tracker.trackOnClick('#cta-button', {
  linkUri: 'EXMP-2321'
});