partnerwave
v0.0.12
Published
Partnerwave JavaScript SDK
Downloads
0
Readme
Partnerwave JavaScript SDK
Partnerwave helps you discover, recruit, engage, track, and manage top-performing affiliates, referrals, resellers, and more
with a single partner management platform.
The JavaScript SDK allows you to automatically capture leads attributes, customer attributes and actions on your site or
application.
It can be used both in Node.js or in the browser.
- Create a Partnerwave account and setup an account to get your API key
Installation
Installation
Client(Browser)
Include the script into your head element
<script src="https://unpkg.com/Partnerwave/dist/Partnerwave.js"></script>
Node
npm install Partnerwave
Tracking Events with the SDK
After installing the sdk as stated above, tracking events can be performed very easily.
To track sign up on the browser
Partnerwave.trackSignUp("customername","customerEmail");
or on Node as follows:
import Partnerwave from "Partnerwave";
Partnerwave.trackSignUp("customerName","customerEmail");
You can get a reference to the current user that was tracked as:
let trackedCustomer = Partnerwave.getActivePartnerReference(); //Returns undefined or data
Set the retrieved trackedCustomer as client_reference_id when initiating your stripe checkout
Webflow
For Webflow partners kindly follow the instructions Here and embed this code <script src="https://unpkg.com/Partnerwave/dist/Partnerwave.js"></script>
into your Webflow.
WordPress
For WordPress partners kindly follow the instructions Here and embed this code <script src="https://unpkg.com/Partnerwave/dist/Partnerwave.js"></script>
into your WordPress.