Expand my Community achievements bar.

SOLVED

What is the name of the tracking variable if I choose Code 'Managed by Adobe' in DTM

Avatar

Level 2

I want to know how is the new option of code 'Managed by Adobe' different from the previous appmeasurement and s_code.

My company has an existing implementation using the custom option (code hosted in DTM). Now we are expanding our website and adding new sub-urls which also need to be tracked. I want to know if I can do the new implementation using 'code managed by Adobe' in DTM or not? and what are the differences?

Thanks

Yatin

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The name of the Adobe Analytics tracker when using 'Managed by Adobe' in the DTM tool settings is 's'.

I'm guessing that the problem that you are having is that it is not available at global scope.

If you want to expose the 's' object in this scenario, you can do so by adding a line like this in the AA tool (under Customize Page Code). Just open the editor and add a line at the top like this:

window.s = s;

Alternately (but not an officially supported method), you can get a handle to the 's' object from the console by doing this:

var s = _satellite.getToolsByType('sc')[0].getS()

This is a good trick for debugging, but I wouldn't recommend using it in production code.

Cheers,

-Stew

View solution in original post

5 Replies

Avatar

Community Advisor

Not sure I understand the variable reference.

Typically DTM Just needs the header footer script on page (any new pages will also need that then).

Also key is do you have any data layer objects? If so they need to be made available on new pages.

Avatar

Level 2

Thanks for your reply. I do the understand implementation from header footer embedded code point of view etc.

My Question is a bit different. If you go to DTM there is a thing called 'Tracker Variable Name' which is/was by default set to 's'. So now in your website with( DTM header /footer in place) you could go to debugger and type 's' and see the  's' object along with its details.

My question is: What is the name of this 'Tracker Variable' if we choose code 'Managed by Adobe' option in DTM.

Thanks

Avatar

Community Advisor

Good question I don't  know and it doesn't seem to show any info on the help link either.

Library Management

I would ask Adobe support to clarify.

Avatar

Correct answer by
Community Advisor

The name of the Adobe Analytics tracker when using 'Managed by Adobe' in the DTM tool settings is 's'.

I'm guessing that the problem that you are having is that it is not available at global scope.

If you want to expose the 's' object in this scenario, you can do so by adding a line like this in the AA tool (under Customize Page Code). Just open the editor and add a line at the top like this:

window.s = s;

Alternately (but not an officially supported method), you can get a handle to the 's' object from the console by doing this:

var s = _satellite.getToolsByType('sc')[0].getS()

This is a good trick for debugging, but I wouldn't recommend using it in production code.

Cheers,

-Stew

Avatar

Level 2

Thank you so much. This is what I was looking for.