campaign-utm-tracker
v1.1.1
Published
A simple UTM tracker for save conversion into Cloudflare KV workers
Downloads
12
Maintainers
Readme
utm_tracker
Install
npm i @jackmcpickle/utm_tracker
Setup
import { utmTrack } from '@jackmcpickle/utm_tracker';
const CLIENT_ID = 'YOUR_CLIENT_ID';
utmTrack(CLIENT_ID).send();
Track conversions
import { utmSendConvert } from '@jackmcpickle/utm_tracker';
const orderId = 'ABC123';
const orderTotal = 10.0;
const CLIENT_ID = 'YOUR_CLIENT_ID';
utmTrack(CLIENT_ID).convert(orderId, orderTotal);