AMP - Analytics

Document created by Herberth Alvarado Champion on Apr 12, 2016Last modified by Maverick Chacon Garro on Oct 4, 2017
Version 26Show Document
  • View in full screen mode

Maintainer: Marco Castiglioni

This document is part of Adaptive Media Player Web User Guide

Akamai Analytics 

Feature: Akamai Media Analytics Beacon and Custom Fields

Media Analytics beacon URL’s should be set in both Flash and HTML5 config independently. The URL of the beacon can be obtained from Luna Control.

Custom dimensions can be set through a combination of embed vars (JSON init) and independent configs.

Customers should place their MA (Media Analytics) beacon file into the config node, and custom dimensions into the dimensions node.

To validate the information is being gathered you can visit Luna Control Center or use a tool like Charles. See more in AMP - Debugging / Troubleshooting

Parameterization can be applied here.

New Plug-in architecture

Sample: amp-web-media-analytics - Samples - Media Analytics  

Media Analytics Plug-in section in the "config" var

plugins:{

      mediaanalytics: {

              debug: true,

              resources: [

                {src: "../akamai/amp/mediaanalytics/Mediaanalytics.js", type: "text/javascript"}

              ],

              sdk: [

                {src: "//79423.analytics.edgesuite.net/html5/akamaihtml5-min.js", type: "text/javascript"}

              ],

              config: "//ma188-r.analytics.edgesuite.net/config/beacon-2114.xml",

              plugin: {

                swf: "//79423.analytics.edgesuite.net/csma/plugin/csma.swf"

              },

              iplookup: true,

              dimensions: {

                eventName: "AMP Sample Event",

                title: "AMP Sample Title",

                playerId:"#{player.mode} Player"

              }

         }

}

  
Version 81 and below

Sample: AMP - Samples - Media Analytics 

Media Analytics section in the "config" var

mediaanalytics:{

      resources:[

        {

            type:"text/javascript",

            src:"//79423.analytics.edgesuite.net/html5/akamaihtml5-min.js"

        }

      ],

      plugin:{

        swf:"//79423.analytics.edgesuite.net/csma/plugin/csma.swf"

      },

      config:"//ma1-r.analytics.edgesuite.net/config/beacon-3018.xml?setVideoObject=1",

      dimensions:{

        title:"#{media.title}",

        playerId:"#{player.mode} Player"

      },

      enabled:true

  }

  

Analytics Metrics and Dimensions can be found here:

https://control.akamai.com/dl/customers/PERF/Analytics_Metrics_Dimensions.pdf

List of default key values able to modify to custom values via AMP config:  AMP - Media Analytics custom values

Third Party Analytics (PREMIER ONLY)

Feature: Analytics: Comscore

Sample: AMP Premier - Samples - comScore

Comscore section in the "config" var

comscore:{

        url:"//b.scorecardresearch.com/b",

        data:{

            c1:"1",

            c2:"9013181",

            c3:null,

            c4:null,

            c5:"02",

            c6:null,

            c7:null,

            c8:null,

            c9:null,

            c10:null,

            c14:null

        },

        events:{

            ads:[

              {

                  type:"started",

                  data:{

                    c5:"09"

                  }

              }

            ],

            video:[

              {

                  type:"started",

                  data:{

                    c5:"02"

                  }

              }

            ]

        },

        enabled:true

      }

 

Feature: Analytics: Comscore Streamsense

Sample: AMP Premier - Samples - Comscore StreamSense

Comscore StreamSense section in the "config" var

comscorestreamsense:{

    enabled:true,

      resources:[

        {

            type:"text/javascript",

            src:"#{paths.resources}js/streamsense.4.1412.05.min.js"

        }

      ],

      data:{

        clientId:"0000000",

        publisherSecret:"publisherSecretId",

        appVersion:"0000000",

        metadata:{

            ads:{

              ns_st_ci:"#{media.guid}",

              c3:"*null",

              c4:"*null",

              c6:"*null",

              cb2:"*null",

              cb3:"*null",

              cb4:"*null",

              cb6:"*null"

            },

            video:{

              ns_st_ci:"#{media.guid}",

              c3:"*null",

              c4:"*null",

              c6:"*null",

              cb2:"*null",

              cb3:"*null",

              cb4:"*null",

              cb6:"*null"

            }

        }

      }

  }

 

 

Feature: Analytics: Nielsen

 

Sample: amp-web-nielsen 

Nielsen Plug-in section in the "config" var
plugins: {
nielsen: {
resources: [
{src: "//secure-dcr-cert.imrworldwide.com/novms/js/2/ggcmb500.js", type: "text/javascript"},
{src: "../akamai/amp/nielsen/Nielsen.min.js", debug: "../akamai/amp/nielsen/Nielsen.js", type: "text/javascript"}
],
data: {
apid: "T342DB3D0-71A5-47EC-8F2F-BF222FB0CA40",
sfcode: "dcr-cert",
apn: "Akamai Player",
nol_sdkDebug: "console"
},
events: {
video: {
type: "content",
assetName: "myassetName",
length: "300",
title: "myTitle",
program: "myProgram",
censuscategory: "myCensusCategory",
assetid: "myAssetId",
channelName: "myChannel",
segB: "segmentB",
segC: "segmentC",
isfullepisode: "Y",
crossId1: "Reference11",
crossId2: "Reference22",
airdate: "20161013 20:00:00",
adloadtype: "2",
mediaURL: "http://www.akamai.com/"
},
ad: {
type: "midroll",
assetid: "myMidrollAssetId"
}
}
}
},

 

Sample: AMP Premier - Samples - Nielsen

Nielsen section in the "config" var

nielsen:{

      enabled:true,

      url:"//secure-us.imrworldwide.com/cgi-bin/m",

      data:{

        ci:"us-000000",

        c6:"c01",

        cg:null,

        tl:"dav0 - #{media.title}"

      },

      events:{

        video:[

            {

              type:"started"

            },

            {

              type:"ended",

              data:{

                  tl:"dav2 - #{media.title}"

              }

            }

        ]

      }

  }

 

 

Feature: Analytics: Nielsen SDK

Sample: AMP Premier - Samples - Nielsen New

Nielsen SDK section in the "config" var

nielsensdk:{

      enabled:true,

      resources:[

        {

            type:"text/javascript",

            src:"//secure-us.imrworldwide.com/novms/js/2/ggcmb400.js"

        }

      ],

      data:{

        apid:"TF8C657A0-BD7E-41A8-968B-C54365021262",

        sfcode:"uat-cert",

        apn:"Akamai Media Player"

      },

      events:{

        video:[

            {

              type:"started",

              data:{

                  censusCategory:"#{media.category}",

                  category:"#{media.category}",

                  episodeTitle:"#{media.title}",

                  videoType:"content",

                  length:"#{media.duration}",

                  assetId:"#{media.guid}",

                  dprFlag:"false"

              }

            },

            {

              type:"resume",

              data:{

                  censusCategory:"#{media.category}",

                  category:"#{media.category}",

                  episodeTitle:"#{media.title}",

                  videoType:"content",

                  length:"#{media.duration}",

                  assetId:"#{media.guid}",

                  dprFlag:"false"

              }

            }

        ]

      }

  },

  ima:{

      resources:[

        {

            type:"text/javascript",

            src:"//imasdk.googleapis.com/js/sdkloader/ima3.js",

            debug:"//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"

        }

      ],

      enabled:true,

      version:3,

      adTagUrl:"//pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&cust_params=sample_ar%3Dpremidpostpod&cmsid=496&vid=short_onecue&correlator=",

      disableCompanionAds:false,

      ppid:"ABCDE123456789012345678901234567",

      vpaidMode:"enabled",

      companions:[

        {

            id:"companion-container",

            width:300,

            height:250

        }

      ]

  }

 

 

Feature: Analytics: Nielsen DCR

Sample: AMP Premier - Samples - Nielsen DCR

Nielsen DCR section in the "config" var

nielsendcr:{

      resources:[

        {

            type:"text/javascript",

            src:"//secure-dcr-cert.imrworldwide.com/novms/js/2/ggcmb500.js"

        }

      ],

      data:{

        apid:"T342DB3D0-71A5-47EC-8F2F-BF222FB0CA40",

        sfcode:"dcr-cert",

        apn:"Akamai Player",

        nol_sdkDebug:"console"

      },

      events:{

        "video":{

            "type":"content",

            "assetName":"myassetName",

            "length":"300",

            "title":"myTitle",

            "program":"myProgram",

            "censuscategory":"myCensusCategory",

            "assetid":"myAssetId",

            "channelName":"myChannel",

            "segB":"segmentB",

            "segC":"segmentC",

            "isfullepisode":"Y",

            "crossId1":"Reference11",

            "crossId2":"Reference22",

            "airdate":"20161013 20:00:00",

            "adloadtype":"2",

            "mediaURL":"http://www.akamai.com/"

        },

        "ad":{

            "type":"midroll",

            "assetid":"myMidrollAssetId"

        }

      }

  },

  ima:{

      resources:[

        {

            type:"text/javascript",

            src:"//imasdk.googleapis.com/js/sdkloader/ima3.js",

            debug:"//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"

        }

      ],

      enabled:true,

      version:3,

      adTagUrl:"//pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&cust_params=sample_ar%3Dpremidpostpod&cmsid=496&vid=short_onecue&correlator=",

      disableCompanionAds:false,

      ppid:"ABCDE123456789012345678901234567",

      vpaidMode:"enabled",

      companions:[

        {

            id:"companion-container",

            width:300,

            height:250

        }

      ]

  }

 

Feature: Analytics: Omniture, Omniture Heartbeat, Omniture HTML5

These samples are two big to show them here, but yo can see the example in the AMP Samples site.

 

Samples:

AMP Premier - Samples - Omniture

AMP Premier - Samples - Omniture Heartbeat

 

Feature: Chartbeat

 

 

Feature: Conviva

 

Conviva Plug-in section in the "config" var
plugins: {
conviva : {
resources: [
{src: "conviva-core-sdk-2.121.0.32738.min.js", type: "text/javascript"},
{src: "conviva-html5native-impl.js", type: "text/javascript"},
{src: "../akamai/amp/conviva/Conviva.js", type: "text/javascript"}
],
customerKey: "cade858ca54db00906caf7ef170130b90a2f4efc",
serviceUrl: "https://turner-br-test.testonly.conviva.com",
metadata: {
//streamType and streamURL is set logically in the code
applicationName:"testApplicationName",
viewerId:"testViewerID",
assetName:"#{media.guid}",
deviceType:"testDeviceType",
cdnName:"AKAMAI",
playerName:"AMP #{player.mode} Player",
custom: {
contentType:"testContentType",
championship:"testChampionship",
sportGender:"testSportGender",
kruxID:"testKruxID",
season:"testSeason",
division:"testDivision",
appVersion:"testAppVersion",
turnerGUID:"testTurnerGUID"
}
}
}
}

 

 

This document is part of Adaptive Media Player Web User Guide

1 person found this helpful

Attachments

    Outcomes