With Mouseflow, it's easy to import data from third-party services to extend the native segmentation/filtering capabilities of Mouseflow.

Use it to

This integration will let you use the parameters defined in Webtrends to filter your Mouseflow recordings by, inside the Mouseflow app.

This is done by retrieving the WT.__" (Webtrends) URL parameters and adding them to individual recordings as Custom Variables.


To set up the integration you will need to replace the existing Mouseflow Tracking Code that you've implemented on your website - with the snippet below:


<script type="text/javascript"> 
function getParameter(sname) {
var params =
var sval = "";
params = params.split("&");
for (var i = 0; i < params.length; i++) {
temp = params[i].split("=");
if ([temp[0]] == sname) { sval = temp[1]; }
return sval;

// Mouseflow tracking code
window._mfq = window._mfq || [];
(function() {
var mf = document.createElement("script");
mf.type = "text/javascript";
mf.defer = true;
mf.src = "//cdn.mouseflow.com/projects/your-website-id.js";

if (window.location.href.indexOf('WT.') > -1) {
["setVariable", "webtrends_cg_name", getParameter('WT.cg_n')],
["setVariable", "webtrends_mc_name", getParameter('WT.mc_n')],
["setVariable", "webtrends_ad_name", getParameter('WT.ad')],
["setVariable", "webtrends_ac_name", getParameter('WT.ac')]);

You can now filter the recording list by any of the WT.__ variables. Pick a variable as the key and enter a value for the ID, accordingly.

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

Did this answer your question?