pmill-affiliate-tracking-2

An affiliate tracking client library for Databowl's affiliate service

Usage no npm install needed!

<script type="module">
  import pmillAffiliateTracking2 from 'https://cdn.skypack.dev/pmill-affiliate-tracking-2';
</script>

README

Affiliate Tracking

This is the affiliate tracking library that clients can include on their sites.

Example

var urlId = '10512f4d-87a4-4d8f-810d-f86546bcbec6';
var defaultAffiliateId = '56df5ddc-7c02-4ddb-b9c7-aa7a6821ac33';

var trackingOptions = new DbEvtTracking.OptionsObject(
    urlId,
    defaultAffiliateId
);

var trackingClient = new DbEvtTracking.TrackingClient(trackingOptions);

trackingClient.createRedirectClickEvent();