Before moving to DTM, we had the integration between Target and Adobe Analytics in place which was working properly (data from the tests was visible in Adobe Analytics).
I've tried to migrate the setup (roughly explained here: https://marketing.adobe.com/resources/help/en_US/tnt/help/index.html?f=t_testtarget_to_sitecatalyst_...) to DTM but I ran into issues. I'm aware of the fact that this solution is a legacy but currently we are not yet ready for the Adobe Analytics as the Reporting Source for Adobe Target.
The setup
1) Mbox.js (v51) is referenced on top of the page, before DTM header code
2) TNT Integration plugin: DTM -> Customize Page Code ->
/* * TNT Integration Plugin v1.0 */ s.trackTNT =new Function("v","p","b","" +"var s=this,n='s_tnt',p=p?p:n,v=v?v:n,r='',pm=false,b=b?b:true;if(s."+"Util.getQueryParam){pm=s.Util.getQueryParam(p);}if(pm){r+=(pm+',');}if(s.wd[v"+"]!=undefined){r+=s.wd[v];}if(b){s.wd[v]='';}return r;");
Using Util.getQueryParam instead of original getQueryParam
3) s_doplugins: DTM -> Customize Page Code ->
/* TnT tracking */ /* TnT to SiteCatalyst*/ s.tnt = s.trackTNT(); /* SiteCatalyst to TnT */var useOneOnOne=false; if ((typeof mboxLoadSCPlugin == "function") && (useOneOnOne)) { mboxLoadSCPlugin(s); }
4) Integration offer in TNT
<script type="text/javascript">/*T&T to SiteCat v4.2 ==>Response Plugin*/ window.s_tnt = window.s_tnt || '', tntVal = '${campaign.id}:${campaign.recipe.id}:${campaign.recipe.trafficType},';if (window.s_tnt.indexOf(tntVal) == -1) { window.s_tnt += tntVal }if (mboxFactories.get('default').isDomLoaded() && (window.s && window.s.tl)) {var ltv = s.linkTrackVars;var lte = s.linkTrackEvents; s.linkTrackVars = 'None'; s.linkTrackEvents = 'None'; s.tl('TnT', 'o', 'TnT'); s.linkTrackVars = ltv; s.linkTrackEvents = lte; }
As described here https://marketing.adobe.com/resources/help/en_US/tnt/help/t_TestTarget_to_SiteCatalyst_Integration.h... + modified by an Adobe consultant some years ago. Using the code straight from https://marketing.adobe.com/resources/help/en_US/tnt/help/t_TestTarget_to_SiteCatalyst_Integration.h... didn't help, though.
Issue
Console:
- SATELLITE: TypeError - Cannot read property 's_tnt' of undefined
- Although when after the page is fully loaded, s_tnt returns a valid value -> "50441:1:0,"
Any ideas how this can be fixed so the data about the test is appended to the Adobe Analytics call?
Thanks in advance!