DTM - How to load/use Media Module for Adobe Analytics

Avatar

Avatar

Kenobinai

Avatar

Kenobinai

Kenobinai

24-11-2016

Hi,

I've tried unsuccessfully to load the Media Module using DTM. Has anyone been able to do this?

Loaded as part of the custom code, where the doPlugins functions is loaded does not work. 

Regards,
V

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Avatar

jantzen_belliston-Adobe

Community Manager

jantzen_belliston-Adobe
Community Manager

28-11-2016

V,

You should be able to add the Media Module right above the "============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ===============" comment. As you pointed out, you will need to use the custom Analytics library option as there is no built-in functionality yet. You can see a working example of the code on a test site located here. Below is an excerpt from the test site's Analytics library:

/* Media Module Config */ s.loadModule('Media'); s.Media.autoTrack=false; s.Media.playerName='YouTube'; s.Media.segmentByMilestones=true; s.Media.trackMilestones='25,50,75'; s.Media.trackUsingContextData=true; s.Media.contextDataMapping = { 'a.contentType':'eVar13', 'a.media.name':'eVar11,prop11', 'a.media.segment':'eVar12', 'a.media.view':'event11', 'a.media.complete':'event15', 'a.media.segmentView':'event17', 'a.media.timePlayed':'event16', 'a.media.milestones':{ 25:'event12', 50:'event13', 75:'event14' } } s.Media.trackVars='events,eVar11,eVar12,eVar13,prop11'; s.Media.trackEvents='event11,event12,event13,event14,event15,event16,event17'; /* * Media Module */ var j=null;function E(){return function(){}} function AppMeasurement_Module_Media(s)<MINIFIED_CODE_REMOVED> /* * Module: Integrate */ function AppMeasurement_Module_Integrate(s)<MINIFIED_CODE_REMOVED /* ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! =============== AppMeasurement for JavaScript version: 1.4.3 Copyright 1996-2013 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com */

Answers (2)

Answers (2)

Avatar

Avatar

Kenobinai

Avatar

Kenobinai

Kenobinai

28-11-2016

Jantzen Belliston wrote...

Glad to hear you got it figured out. Thanks for stopping by the forums! smiley

 

Seems like I somehow managed to delete my answer. 

Thanks Jantzen.

V

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Avatar

jantzen_belliston-Adobe

Community Manager

jantzen_belliston-Adobe
Community Manager

28-11-2016

Glad to hear you got it figured out. Thanks for stopping by the forums! smiley