Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Analytics Question

$
0
0

Hi @muni1729,

Each KalturaMediaEntry object has views and plays members which are set to the total number of views and plays.
And so, calling media->get() and looking at these fields will give you the grand total.
If you wish to see the number of plays for a given time period, you can use:
report->getTotal(), passing the entry ID as objectIds and reportType=1 (TOP_CONTENT)

Here is an example using the PHP client:

$reportType = KalturaReportType::TOP_CONTENT;
$reportInputFilter = new KalturaReportInputFilter();
$reportInputFilter->fromDay = 20170101;
$reportInputFilter->toDay = 20180101;
$objectIds = '1_hqzw282w';
$result = $client->report->getTotal($reportType, $reportInputFilter, $objectIds);

Which will return something like this:

        header  count_plays,sum_time_viewed,avg_time_viewed,count_loads,load_play_ratio,avg_view_drop_off
        data    35,12.417,0.3547714,61,0.5738,0.50714286

Viewing all articles
Browse latest Browse all 7410

Trending Articles