AppMeasurement (s_code) in DTM Question

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

19-06-2017

We are currently using modified s_code in DTM but I would like to revert back to "managed by Adobe" however I had a few questions regarding the custom code we have in the s_code file:

1.JPG

Custom Code in s_code:

  • Using the YouTube API for video tracking
  • DemandBase code from Data Connector
  • doPlugins for:
    • getPercentPageViewed
    • getNewRepeat
    • getVisitNum
    • getLoadTime
    • getTimeParting

Questions:

  1. Can I migrate the YouTube API, DemandBase API and the doPlugins to the "Customize Page Code" section?
  2. Any other workarounds to get the custom code to still work but have s_code managed by Adobe?
  3. If I can use the "Customize Page Code" section then when would I execute, "After"?

2.JPG

Thank you in advance for any help,

Scott

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 1
dtmWoot
Level 1

Like

1 like

Total Posts

1 post

Correct reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
dtmWoot
Level 1

Like

1 like

Total Posts

1 post

Correct reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
dtmWoot
Level 1

19-06-2017

Hi Scott -

I think migrating to Adobe Managed App Measurement is a smart idea. The configuration you've described is most likely a legacy implementation, and with few exceptions, is not necessary. This setup also has the potential to cause issues with the implementation as it scales.

The best way to migrate is to move all "do_plugins" code to custom page code (as you've indicated) and leave the default execution settings.

If you need to migrate 3rd party tags and are concerned about load timing, I would add each tag separately as 3rd party JS (for better control and management) and then decide, based on each tag, if you will need to configure the load of the tag (top of page, asynchronous, page bottom, etc).

Hope this helps.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

20-06-2017

Hi Scott,

I agree with Mark's answer. One additional thing that you might run into is scoping on the s object. If you do, we have some workarounds that will globally scope the s object. Let me know if you run into that and I'll see if I can find the latest recommendation.

Cheers,
Jantzen