Get started with Kiflo JS
To start using Kiflo JS from your website:
- Go to Kiflo Account > Integration
- Copy the Kiflo Javascript Snippet so you can access the Kiflo JS API
- Paste the snippet in the <head> section of all the webpages you need to track
- Go back to Kiflo Account > Integration and Verify your installation:
Now that you have connected your website to Kiflo every visitor coming from a partner referral link is tracked. Thus we are able to credit the partner who brought the customer or the lead.
Advanced: Cross-subdomain tracking
If you want to track visitors and leads across multiple sub-domains, you can specifiy the domain on which the tracking cookie needs to be put.
Use case:
- I have a landing page hosted on landing.foobar.com
- Visitors are redirected to another page to sign up, hosted on app.foobar.com
- I need to track the source partner of leads who sign up from app.foobar.com
Just add the useDomain parameter in the JS snippet initialization code like this:
var kjs = window.kjs || function (a) { var c = { apiKey: a.apiKey, useDomain: a.useDomain }; var d = document; setTimeout(function () { var b = d.createElement("script"); b.src = a.url || "https://cdn.kiflo.com/k.js", d.getElementsByTagName("script")[0].parentNode.appendChild(b) }); return c; }({ apiKey: "dd78dfcd-8992-4f7d-8e15-3c78085781f3", useDomain: "foobar.com" });
Don't forget to update the 2nd and last line of the snippet!
Next steps
- Connect your "Signup Form" and start rewarding partners for referrals that convert into paying customers
- Connect your "Request Demo Form" and start rewarding partners for referrals that convert into qualified leads
- Connect your "Partner Program Signup Form" to recruit new partners from your website