Get started with Kiflo JS
To start using Kiflo JS from your website:
- Open the Account Settings page
- Then go to Integration
- Copy the JavaScript snippet displayed on the page. It is already customized with your own "apiKey":

- Paste the snippet in the <head> section of your website (you can use GTM)
- Go back to Kiflo and Verify your installation:

If the URL is not authorized yet but the JavaScript snippet is detected, you'll be asked to add the URL to the list of authorized URLs below.
Now that you have connected your website to Kiflo, every visitor coming from a partner referral link is tracked!
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