DTM with legacy s_code written in site JavaScript Functions

Avatar

Avatar
Level 1
amank96141129
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
amank96141129
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
amank96141129
Level 1

15-05-2018

Hi there

We are in the process in migrating from a legacy s_code Adobe Analytics implementation to DTM.

There is a lot of legacy implementation embedded in functions across the site in various JavaScript files e.g. for video tracking we have a JavaScript function which checks for different event cases before triggering Adobe Analytics events with the relevant props/eVars.

e.g.

key: '_track',

    value: function _track(event, data) {

      if (typeof s === 'undefined') {

        return;

      }

       switch (event) {

        case Events.VIDEO_PLAY:

          s.products = ';' + prefix + ':' + clipType + ':' + this.video + ';;;event###=' + Math.ceil(this.video.duration / 60);

          s.events = 'event##,event###,event####';

          s.prop## = s.eVar## = 'some_value';

          break;

        case Events.VIDEO_PLAYHEAD_MOVED:

          if (this.milestones.tracked.VIDEO_PLAYHEAD_MOVED) {

            return;

          }

...........

The long term plan is to create a dataLayer and push event information into it to track such events. However, in the short term is it possible to leverage existing functions as above to trigger events in DTM?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,338 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,338 posts

Correct reply

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

15-05-2018

Hi,

If you are just starting to migrate from a page code implementation to DTM, have you considered migrating straight to Launch, by Adobe? Launch is Adobe's latest iteration of our Tag Management solution. DTM is considered a legacy product at this point with no major improvements planned. If you are already in the process of a migration, it might make sense to move directly to Launch.

You can learn more on our Launch, by Adobe​ community.

Thanks,
Jantzen

Answers (0)