インテグレーション:Adobe Test&Target (TNT) Integration
2016年12月19日
Mouseflowでは、Adobe Test&Target内のキャンペーンやレシピに別々のヒートマップを簡単に生成できます。
このインテグレーションにより、mouseflowPath変数を使用してカスタムヒートマップ/データバケットを作成します。
<script type=\"text/javascript\">
// Mouseflow tracking code
var _mfq = _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>
異なるレシピに別々のヒートマップを生成したくない場合は、$ {campaign.recipe.id}、$ {campaign.recipe.trafficType}、およびsRecipeNameへの参照を削除するだけで実現することができます。