Mouseflow Help & Support

Webtrends Integration


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

To integrate with Omniture, we can push up the "WT.__" (Webtrends) URL parameters. This integration makes use of our Custom Variables feature. Just replace your tracking code with the snippet below.


<script type="text/javascript">

function getParameter(sname) {
var params ="?")+1);
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.async = true;
    mf.src = "//";

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


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.


Tags: integrate webtrends third party service custom variables

Have more questions? Submit a request


Powered by Zendesk