Skip to content

Overview

MethodDescription
init()Initialize the SDK with your API key. Must be called first.
identify()Links a customer's identity (email, userId) to the affiliate session.
trackAddToCart()Tracks when a user adds an item to the cart.
trackRemoveFromCart()Tracks when a user removes an item from the cart.
trackCheckout()Tracks when a user reaches the checkout page.
trackProductDetailsViewed()Tracks when a user views a product detail page.
trackOrder()Tracks a completed order. Duplicate orders are automatically prevented.
trackThankYouPageViewed()Tracks the thank you / order confirmation page view.
destroy()Clears session, cookies, event queue, and listeners.

Released under the MIT License.