Expand my Community achievements bar.

SOLVED

How to identify which tag implementation (DTM or Launch) configured for a site.

Avatar

Level 3

I just want to know which adobe tag implementation (DTM or Launch) is used for a website using JS script.

1 Accepted Solution

Avatar

Correct answer by
Level 4

There's a few different things you could use.  Personally I love ' _satellite.property.name ' because it returns the name of the Launch Property directly.

However, just according to the official launch documentation, you could use _satellite.buildInfo .

_satellite.buildInfo has various pieces of information within, and contains items specific to turbine.

from: https://docs.adobelaunch.com/client-side-information/launch-object-reference

Example Values

{

  turbineVersion: "14.0.0",

  turbineBuildDate: "2016-07-01T18:10:34Z",

  buildDate: "2016-03-30T16:27:10Z",

  environment: "development"

}

View solution in original post

5 Replies

Avatar

Employee Advisor

Hi eldhov19157560​,

You can check the code version in the server call/image request triggering to Analytics to know the tag implementation. In DTM, you will find something starting with 'D' (as shown in screenshot below), whereas in Launch, you will find something starting with 'L'.

1606582_pastedImage_0.png

Hope it helps!

Avatar

Level 3

Thanks for the information.

But this is not sufficient for my use case, I am currently working on an automated tool to debug the tag implementations.

I am looking for something like   '_satellite.' variable or any other variables which can be accessed from JS console.

I can check the dtm/launch script tag from the page view source (..assets.adobedtm.com/launch or assets.adobedtm.com), but in this case also there is an issue. If we migrate DTM to Launch using the upgrade to option then the script tag still pointed to old DTM not the Launch script.

Avatar

Correct answer by
Level 4

There's a few different things you could use.  Personally I love ' _satellite.property.name ' because it returns the name of the Launch Property directly.

However, just according to the official launch documentation, you could use _satellite.buildInfo .

_satellite.buildInfo has various pieces of information within, and contains items specific to turbine.

from: https://docs.adobelaunch.com/client-side-information/launch-object-reference

Example Values

{

  turbineVersion: "14.0.0",

  turbineBuildDate: "2016-07-01T18:10:34Z",

  buildDate: "2016-03-30T16:27:10Z",

  environment: "development"

}

Avatar

Level 3

But the buildInfo is only available for Launch.

So, we have add a condition

if 'buildInfo' or '_satellite._container' is not undefined then it is Launch implementation  otherwise it is DTM implementation.

Is this the only option available?

Avatar

Level 4

From official documentation standpoint, yes I believe that's your only option (checking for the existence of turbine, basically).

I would avoid '_satellite._container' , just from a general practice standpoint.