Mouseflow Help & Support

Adobe Test&Target (TNT) Integration

Follow

With Mouseflow, it's easy to generate separate heatmaps for campaigns and recipes within Adobe Test&Target.

This integration makes use of the mouseflowPath variable to create a custom heatmap/data bucket.

Example

<script type="text/javascript">

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

 // Get current path
 var currentPath = document.location.pathname; 

 // Check for tnt
 if (typeof(s_tnt) == 'undefined') {
   var s_tnt = '';
 }

 s_tnt += '${campaign.id}:${campaign.recipe.id}:${campaign.recipe.trafficType},';

 var sCampaignName = '${campaign.name}';
 var sRecipeName = '${campaign.recipe.name}';

 // if we have tnt data
 if (sCampaignName.length > 0 && sRecipeName.length > 0) {
   // Append tnt data to mouseflowPath
   var mouseflowPath = currentPath + '-' + sCampaignName + '-' + sRecipeName;
 }
</script>

 

If you do not wish to generate separate heatmaps for different recipes, simply remove references to ${campaign.recipe.id}, ${campaign.recipe.trafficType}, and sRecipeName.

 

Tags: integrate adobe test and target test&target separate heatmaps

Have more questions? Submit a request

Comments

Powered by Zendesk