Explorer records what people do: which pages and trends they open, when they load Explorer, and which workbooks they use. These objects let administrators and digital champions build adoption dashboards: who is using Explorer, which content is popular, and which security groups are active.
Note: These objects aren't filtered by Explorer security. Every signed-in user can read every user's activity and every role and group membership.
Objects
| Object | What it holds |
|---|---|
| AnalyticsEvents | Raw usage events: Name, Timestamp, LastModified, Metadata |
| AnalyticsEventDetails | One row per event, with its details as columns. Easier to report on. |
| UserGroupActivity | One row per event for each security group its user belongs to: EventId and UserGroupUserId (the key), EventName, Timestamp, UserName, GroupName |
| UserRoles | Users and their roles: User, Role |
| UserGroupUsers | Users and their groups: User, UserGroup |
| UserGroupRoles | Groups and their roles: UserGroup, Role |
All of these are database-backed, so the OI query functions work on them.
Analytics events
AnalyticsEventDetails fields:
| Field | Notes |
|---|---|
| Name | The event, such as Open Page, Open Trend or Load Explorer |
| Timestamp | When it happened |
| UserName | Who did it |
| PageName, TrendName | The page or trend opened |
| WorkbookName | The workbook, for workbook events |
| WorkspaceName, WorkspaceDisplayName | The workspace. WorkspaceDisplayName adds the owner's name to "My Workspace", so personal workspaces can be told apart. |
| Workspace | The workspace object |
| WorkbookGuid, PageGuid, TrendGuid | The id of the workbook, page or trend opened |
| Actions | All of the event's other details as one text, such as Page Name: Morning Meeting, Workspace Name: Production Ops |
| Pages, Trends | Pages and trends with the same name that still exist and that you can see. Pages/any() leaves out deleted pages and pages in workspaces you can't open. |
Event names in your system:
AnalyticsEvents?$apply=filter(Timestamp ge OI.daysago(30))/groupby((Name),aggregate($count as Events))&$orderby=Events desc
Popular pages and trends
Most viewed pages in a period:
AnalyticsEventDetails?$apply=filter(Name eq 'Open Page' and PageName ne null and WorkspaceName ne null and UserName ne null and Pages/any() and Timestamp ge ODataParam(startTime,datetime) and Timestamp le ODataParam(endTime,datetime))/groupby((WorkspaceDisplayName,PageName),aggregate($count as PageViews))&$orderby=PageViews desc&$top=50
| WorkspaceDisplayName | PageName | PageViews |
|---|---|---|
| Production Ops | Morning Meeting | 1,284 |
| Production Ops | Well Overview | 976 |
| My Workspace - Jane Smith | My Wells | 112 |
Most viewed trends in the last 30 days:
AnalyticsEventDetails?$apply=filter(Name eq 'Open Trend' and TrendName ne null and Timestamp ge OI.daysago(30))/groupby((TrendName),aggregate($count as TrendViews,UserName with countdistinct as Users))&$orderby=TrendViews desc&$top=20
Who views a chosen page?
AnalyticsEventDetails?$apply=filter(Name eq 'Open Page' and PageName eq ODataParam(page,string) and Timestamp ge OI.daysago(90))/groupby((UserName),aggregate($count as Views,Timestamp with max as LastViewed))&$orderby=Views desc
Active users
Who uses Explorer, and when were they last seen?
AnalyticsEventDetails?$apply=filter(UserName ne null and Timestamp ge OI.daysago(30))/groupby((UserName),aggregate($count as Events,Timestamp with max as LastSeen))&$orderby=Events desc
Users ordered by how long since they were last seen, over the last year:
AnalyticsEventDetails?$apply=filter(UserName ne null and Timestamp ge OI.monthsago(12))/groupby((UserName),aggregate(Timestamp with max as LastSeen))&$orderby=LastSeen
Number of distinct users per month:
AnalyticsEventDetails?$apply=filter(UserName ne null and Timestamp ge OI.monthsago(12))/compute(OI.startofmonth(Timestamp) as Month)/groupby((Month),aggregate(UserName with countdistinct as Users,$count as Events))&$orderby=Month
User actions and their details
Every action in a period, newest first, with its details and the id of whatever was opened. The contains clauses match part of the text, ignoring case:
AnalyticsEventDetails?$filter=Timestamp ge ODataParam(startTime,datetime) and Timestamp le ODataParam(endTime,datetime) and contains(Name,ODataParam(action,string)) and contains(UserName,ODataParam(user,string)) and contains(Actions,ODataParam(details,string))&$compute=OI.ifnull(WorkbookGuid,OI.ifnull(PageGuid,TrendGuid)) as OpenedId&$select=Name,Timestamp,UserName,Actions,OpenedId&$orderby=Timestamp desc
Leave out a contains clause to match everything for that field.
Activity over time
Explorer loads per day:
AnalyticsEvents?$apply=filter(Name eq 'Load Explorer' and Timestamp ge OI.daysago(30))/compute(year(Timestamp) as Year,month(Timestamp) as Month,day(Timestamp) as Day)/groupby((Year,Month,Day),aggregate($count as Loads))&$orderby=Year,Month,Day
Activity by local hour of day, split into page views and trend views, using Union:
Union?branches=AnalyticsEvents($filter=Timestamp ge OI.daysago(30) and startswith(Name,'Open Page');$apply=compute('Page views' as EventType,hour(OI.attimezone(Timestamp,'Australia/Perth')) as HourOfDay)/groupby((EventType,HourOfDay),aggregate($count as EventCount))),AnalyticsEvents($filter=Timestamp ge OI.daysago(30) and startswith(Name,'Open Trend');$apply=compute('Trend views' as EventType,hour(OI.attimezone(Timestamp,'Australia/Perth')) as HourOfDay)/groupby((EventType,HourOfDay),aggregate($count as EventCount)))&select=EventType,HourOfDay,EventCount&orderby=EventType asc,HourOfDay asc
Activity by weekday (1 is Monday). Dates are in UTC unless you use OI.attimezone:
AnalyticsEvents?$apply=filter(Timestamp ge OI.monthsago(3))/compute(OI.weekday(Timestamp) as Day)/groupby((Day),aggregate($count as Events))&$orderby=Day
Security roles and groups
Which groups have a chosen role?
UserGroupRoles?$filter=Role/Name eq ODataParam(role,string)&$compute=UserGroup/DisplayName as GroupName&$select=GroupName
Groups and roles matching a search term:
UserGroupRoles?$compute=Role/Name as RoleName,UserGroup/DisplayName as GroupName&$filter=contains(Role/Name,ODataParam(membership,string)) or contains(UserGroup/DisplayName,ODataParam(membership,string))&$select=RoleName,GroupName
Number of users in each group:
UserGroupUsers?$apply=compute(UserGroup/DisplayName as GroupName)/groupby((GroupName),aggregate($count as Users))&$orderby=Users desc
A user's direct roles:
UserRoles?$filter=User/Username eq ODataParam(user,string)&$compute=Role/Name as RoleName&$select=RoleName
Activity per security group
UserGroupActivity repeats each event once for every security group its user belongs to. Users are matched by their display name, so events from users who aren't in any group are left out.
Active users and events per security group in a period, busiest first:
UserGroupActivity?$apply=filter(Timestamp ge ODataParam(startTime,datetime) and Timestamp le ODataParam(endTime,datetime))/groupby((GroupName),aggregate(UserName with countdistinct as Users,$count as Events))&$orderby=Events desc
A user in two groups counts once in each.