Expand my Community achievements bar.

SOLVED

Target to Adobe Analytics integration

Avatar

Level 3

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; // switch to turn on/of the siteCatalyst mbox parameters     if ((typeof mboxLoadSCPlugin == "function") && (useOneOnOne)) { // if mbox.js is loaded and the switch is on      mboxLoadSCPlugin(s); // additional mbox call to TnT to track the SiteCatalyst variables in TnT.     }

4) Integration offer in TNT

<script type="text/javascript">// <![CDATA[/*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; }// ]]></script>

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

  • No Adobe Analytics call

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!

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Alexis,

Yes, I sent you a private message via the board.

Yes, could you please create an incident?

Best regards,
Lukasz Urban

View solution in original post

6 Replies

Avatar

Community Advisor

Hi Lukasz,

Can you please provide the URL where you have this issue ?

I need to review the code and from your webpage I should be able to find your DTM company and web property ID easily.

Once you provide these details then we can look at the issue further.

Are you seeing in prod or only staging ? 

Best regards.

 

Alexis Cazes

Lead Technical Support Engineer

Avatar

Level 3

Hi Alexis,

Thanks for your reply. I will send you a private message with the URL. It is currently happening on staging only.

Best regards,
Lukasz Urban

Avatar

Level 3

BTW, concerning the point 1) above, I now have the mbox (v58) deployed via Target Tool within DTM. The issue is however the same.

Target Tool setting is:

Load Adobe Target Library synchronously (ticked)

Avatar

Community Advisor

Hi Lukasz,

 

Di you sent me a private email regarding your configuration ? 

Would you like me to create an incident ?

 

Best regards.

 

Alexis Cazes

Lead Technical Support Engineer 

Avatar

Correct answer by
Level 3

Hi Alexis,

Yes, I sent you a private message via the board.

Yes, could you please create an incident?

Best regards,
Lukasz Urban

Avatar

Level 3

Hi Alexis,

We were helped by Adobe. We had to use a new plugin. The issue is now solved.

Best regards,

Lukasz Urban