At Mouseflow we always strive to enrich your data as much as possible. For that reason, we try to make it as easy as possible to import data from third-party services to extend the native segmentation/filtering capabilities in the Mouseflow app.

Use it to

Identify and track users with the KissMetrics Anonymous ID variable. This allows you to identify recordings from individual users.

The integration works by hooking into the "km_ai" cookie to track individual users.


1. Log in to your Mouseflow account and go to the Integrations Section

2. Navigate to the KissMetrics Integration in the list

3. Toggle the radio button to enable the integration.

4. Once the integration is enabled you'll begin seeing Mouseflow Playback Links related to specific responses in your Usabilla account.

B. Manual Installation

You also have the option of installing the integration manually. This integration makes use of our Custom Variables feature.

This integration example uses the js-cookie library. Add it to your site by adding this line:

<script src=""></script>

2. Go to your site and change the Mouseflow Tracking Code

Go to your site and find the place where you've installed the Mouseflow Tracking code.

Note: If you're using Google Tag Manager please see our article on customizing the Mouseflow tracking code in GTM.

On the second line of the tracking code please add:

var km_ai = Cookies.get('km_ai');

And then on the second to last line please add:

_mfq.push(["setVariable", "kissmetrics_id", km_ai]);

So that the tracking code now looks like the following example:

<script type="text/javascript"> 

var km_ai = Cookies.get('km_ai');

// Mouseflow tracking code
window._mfq = window._mfq || [];
(function() {
var mf = document.createElement("script"); mf.type = "text/javascript"; mf.defer = true;
mf.src = "//";

_mfq.push(["setVariable", "kissmetrics_id", km_ai]);

You can now filter the recording list by the kissmetrics_id variable -- pick kissmetrics_id as the key and enter a value for the ID, accordingly.

Did this answer your question?