What Geographies Are Driving My Content Traffic?

Context: Your content reaches viewers in multiple countries. You want to see what portion of your traffic is driven by each geography your content reaches.

How to Determine This with v3 Analytics

Query against the country dimension, filter by domain (domain='exampledomain.com') and device _type (device_type='tablet'), and sort by the plays_requested metric.
[GET] /v3/analytics/reports/?
report_type=performance
&dimensions=country
&filters=((device_type=='tablet')) AND ((domain=='exampledomain.com'))
&metrics=plays_requested
&start_date=2014-10-10
&end_date=2014-10-20
&sort=plays_requested
&api_key=yourApiKey                
https://api.ooyala.com/v3/analytics/reports/?report_type=performance&dimensions=country&filters=%28%28device_type%3D%3D%27tablet%27%29%29+AND+%28%28domain%3D%3D%27exampledomain.com%27%29%29 &metrics=plays_requested&start_date=2014-10-10&end_date=2014-10-20 &sort=plays_requested&api_key=yourApiKey& expires=yourExpiration&signature=yourSignature

Response:

                     
{  
   "status":"OK",
   "results":[  
      {  
         "data":[  
            {  
               "metrics":{  
                  "plays_requested":11000
               },
               "group":{  
                  "country":"us",
                  "countryName":"United States"
               } 
            },
            {  
               "metrics":{  
                  "plays_requested":5100
               },
               "group":{  
                  "country":"fr",
                  "countryName":"France"
               } 
            },
            { 
               "metrics":{  
                  "plays_requested":2000
               },
               "group":{  
                  "country":"gb",
                  "countryName":"United Kingdom"
               }
            },
            {  
               "metrics":{  
                  "plays_requested":2000
               },
               "group":{  
                  "country":"be",
                  "countryName":"Belgium"
               }
            },
            { 
               "metrics":{  
                  "plays_requested":1600
               }, 
               "group":{  
                  "country":"ca",
                  "countryName":"Canada"
               }
            },
            {  
               "metrics":{  
                  "plays_requested":1400
               },
               "group":{  
                  "country":"de",
                  "countryName":"Germany"
               }
            },
            {  
               "metrics":{  
                  "plays_requested":1100
               },
               "group":{  
                  "country":"ua",
                  "countryName":"Ukraine"
               }
            },
            {  
               "metrics":{  
                  "plays_requested":1000
               },
               "group":{  
                  "country":"se",
                  "countryName":"Sweden"
               }
            },
            {  
               "metrics":{  
                  "plays_requested":800
               },
               "group":{  
                  "country":"nl",
                  "countryName":"Netherlands"
               }
            },
            {  

               "metrics":{  
                  "plays_requested":600
               },
               "group":{  
                  "country":"it",
                  "countryName":"Italy"
               } 
            }
         ],
         "start_date":"2014-10-10T00:00Z",
         "end_date":"2014-10-20T00:00Z"
      }
   ],
   
   "status_code":"200",
   "total_count":100,
   "result_count":10
}

해당 내용이 도움 되었습니까?