Calculating the exact number of views from the GetSessionExtendedDetailedUsage event stream
I'm afraid I have another question regarding the SOAP API. We are trying to use GetSessionExtendedDetailedUsage to extract the number of views for a given session and user, to make sure that the number that is returned agrees with the online stats and reports.
I have attached an Excel file which contains an anonymised subset of the results for a specific session id and user id (f66049a8-6309-4618-a8b5-ae4300a5fdda and 6a1f52ea-2704-4495-b6bf-adc00161749c respectively,).
I have inserted empty lines in the XLS where my extraction strategy sets delimiters to isolate separate views based on the event stream player actions. The current strategy is as follows:
StartReason= Start (new view starts on same index)
StopReason= PlayerClose, End (new view start on next index)
If StartReason != Start on first event of a new view, add it anyway
As you can see, splitting the event stream in this manner returns 5 views instead of the 6 views shown in the online stats. In fact, I have manually inserted an extra line/view (at index 1019) based on visual inspection of the event time, otherwise the discrepancy would have been two views instead of one
This happens very often and for the life of me I cannot find the right way to reconcile my results with what's returned by the platform. The number of unique viewers and the total amount of time spent (the sum of SecondsViewed) is always in agreement, so I think I have all the events.
Would someone be able to share with us how you calculate the number of views and downloads from the event stream returned by GetSessionExtendedDetailedUsage?
Failing that, is there a straightforward way to get the number of views for a given session/user from a different API? I have tried most of the ones I thought were relevant (both REST and SOAP), in vain.