In respect to GDPR, MouseStats no longer support "tag" and "identify". Please contact MouseStats support in case you want "tag" to be enabled.



Integrating MouseStats with Convert Experiments allows you to view reports of your Convert experiments in the MouseStats reports.

For each experiment, the integration will pass along the experiment name and variation name as that the Visitor is currently bucketed into (if any) as tags using MouseStats. You will have to install an additional script to your website, along with the Convert Experiments and MouseStats codes. This will only need to be done once, on the pages where you want to track, in order for this to work for all current and future experiments.

Add Tracking Code Snippets

Make sure the Convert tracking code and the MouseStats tracking code are installed on your page. Convert Tracking Code can be found in Project Configuration:

You should find your MouseStats tracking code in by logging into your MouseStats account.

Add the Integration Code

Copy this code, after the two tracking codes, to activate the integration:

var refObject = window['convert']['data']['experiments']
for (var key in window["convert"]["currentData"]["experiments"]) {
if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {

var currentExperiment = window["convert"]["currentData"]["experiments"][key];
var curExperimentName = refObject[key] && refObject[key].n ? refObject[key].n : "unknown experiment name";
curExperimentName = curExperimentName.replace("Test #", "Test ");
var curVariant = currentExperiment['variation_name'] ? currentExperiment['variation_name'] : "unknown variant";
curVariant = curVariant.replace("Var #", "Variation ");

MouseStats_Commands.push(["tag", "Experiment_Name",curExperimentName]);
MouseStats_Commands.push(["tag", "Variation_Name",curVariant]);

Verify Installation

The easiest way to verify that your integration code is correctly installed is to:

  1. Go to the page you are running these tests on.
  2. Verify on the MouseStats app if you receiving any visits. 
  3. You should be able to filter the visits by tags. So you could filter them by experiment name and variation name.

(Note: It may take up to 10 minutes for the experiment to show up. If you don’t see it at first, give it a little time.)