Analytics Overview
The Tribe API provides several endpoints for tracking and retrieving analytics data about your platform, content, and users. These endpoints allow you to monitor engagement, track views, and analyze user behavior.
Available Analytics Endpoints
Endpoint | Method | Description |
---|---|---|
/api/platform/analytics/:id | GET | Get user count by role for a platform |
/api/view-data/week | GET | Get view data aggregated by week |
/api/view-data | POST | Record a content view event |
/api/video-analytics | POST | Record video watch analytics |
Analytics Data Types
The Tribe API tracks several types of analytics data:
- User Analytics - Information about user counts, roles, and engagement
- Content Analytics - View counts and engagement metrics for content
- Video Analytics - Specialized metrics for video content, including watch duration
- Platform Analytics - Overall platform usage and performance metrics
Custom Analytics
Platform administrators and creators can also:
- Access custom analytics dashboards in the web interface
- Configure custom analytics URLs for specialized tracking
- Export analytics data for further analysis in external tools
Database Analytics
For advanced analytics needs, direct SQL queries can be executed against the database to retrieve detailed analytics information. Examples include:
- Total views by content
- User engagement over time
- Content performance metrics
Notes
- Analytics data is collected automatically when users interact with content
- View events can be recorded for both authenticated and anonymous users
- Analytics endpoints typically require admin or creator authentication
- Data is typically aggregated to protect user privacy while providing meaningful insights