List Analytics Data
The raw data that powers Guru's Analytics Dashboard is available for export.
API Endpoint
GET /v1/teams/{teamId}/analytics?fromDate=&toDate=
URL Parameters
teamIdthe ID of the Team
Query Parameters
All query parameters are optional.
-
fromDateindicates the request should return all events with a date greater than or equal to this date -
toDateindicates the request should return all events with a date less than or equal to this date
The date value in the fromDate and toDate query parameters must be in one of the ISO-8601 formats...
yyyy-MM-ddZ (i.e. 2015-02-01+04:00)
yyyy-MM-ddTHH:mmZ (i.e. 2015-02-01T15:01+04:00)
yyyy-MM-ddTHH:mm:ssZ (i.e. 2015-02-01T15:01:30+04:00)
yyyy-MM-ddTHH:mm:ss.SSSZ (i.e. 2015-02-01T15:01:30.000+04:00)
NOTE - If you do not give a timezone in your request, it will default to+00:00.
Sample Request
To return all analytics events since January 1st, 2016 at 5:30am UTC, a fromDate of 2016-01-01T05:30:00+00:00 is specified. When URL encoding the query parameters, the full URL is as follows...
https://api.getguru.com/api/v1/teams/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/analytics?fromDate=2016-01-01T05:30:00+00:00
To return all analytics events between September 4th, 2020 and Septermber 7th, 2020 (including all events on the 7th), a fromDate of 2020-09-04T00:00:00 is specified and a toDate of 2020-09-08T00:00:00
https://api.getguru.com/api/v1/teams/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/analytics?fromDate=2020-09-04T00:00:00&toDate=2020-09-08T00:00:00
Sample Response
The response will contain an array of event objects. Fields include...
-
eventTypestring value indicating the type of event -
eventDatethe date the event occurred, in ISO-8601 format -
useremail address of the user performing the event -
propertiesmap of key-value pairs. Values vary depending on the event type. The most common property iscardIdand is the ID of the card the event applies to
Results for these calls can be paged. See the Paging documentation for more information.
[
{
"type" : "fact-viewed",
"user" : "[email protected]",
"eventDate" : "2016-01-20T03:10:11.351+0000",
"properties" : {
"cardId" : "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
},
...
]
Analytics Event Types
Below is a list of event types that our API Analytics tracks:
-
card-createda new card as been published -
card-comment-createda user has commented on a card -
card-copieda user either copied the content within the card or clicked on the "Card Copied content" button while viewing a card -
card-deleteda card has been archived -
card-favoriteda user clicked the heart icon to add the card to "My Favorite Card" list -
card-shared-to-teama user made a private card to a team shared card or created a new card which is team shared -
card-updateda user made edits to a card -
card-verifieda user has verified a card -
card-vieweda user clicked & viewed a card -
card-unfavoriteda user removed a card from their "My Favorite Card" list -
searcha user performed a type ahead search and click on one of the Top Title Matches or typed in the search bar to see the Search Results -
board-createda user created a new folder within a Collection -
board-updateda user edited an existing folder within a Collection -
board-deleteda user deleted an existing folder within a Collection -
board-vieweda user viewed an existing folder within a Collection -
card-link-copieda user clicked on the "Card Copy link" button while viewing a card -
card-file-link-vieweda user viewed a link to a file that is uploaded to a card and displayed in the card's file viewer -
question-answereda user answered a question in the "Ask the Experts" feature -
question-createda user created a question in the "Ask the Experts" feature -
question-deleteda user deleted a question in the "Ask the Experts" feature -
logina user logged into Guru
Updated 17 days ago
