Get started with Kiflo JS

To start using Kiflo JS from your website:

  1. Go to Kiflo Account > Integration
  2. Copy the Kiflo Javascript Snippet so you can access the Kiflo JS API
  3. Paste the snippet in the <head> section of all the webpages you need to track
  4. 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
  • Visitors are redirected to another page to sign up, hosted on
  • I need to track the source partner of leads who sign up from

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 || "", d.getElementsByTagName("script")[0].parentNode.appendChild(b)
            return c;
        }({ apiKey: "dd78dfcd-8992-4f7d-8e15-3c78085781f3", useDomain: "" });
Don't forget to update the 2nd and last line of the snippet!

Next steps

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.