Enable sharing
POST /api/websites/:id/share
Enable public sharing for a website dashboard.
Path parameters
Website ID (format:
site_XXXXXXXXXX)Response
Unique share token for the public dashboard
Full public URL for the shared dashboard
Example
Response
Disable sharing
DELETE /api/websites/:id/share
Disable public sharing and revoke the share token.
Path parameters
Website ID
Response
Returns204 No Content on success.
Example
Public dashboard access
Once sharing is enabled, anyone with the share URL can view the dashboard without authentication.Features available in shared dashboards
- ✅ Real-time visitor count
- ✅ Stats overview (pageviews, visitors, bounce rate, etc.)
- ✅ Time series charts (pageviews over time)
- ✅ Metrics breakdowns (pages, countries, browsers, etc.)
- ❌ Goal statistics (not shown in public dashboards)
- ❌ Event details (not shown in public dashboards)
- ❌ Session drilldown (not shown in public dashboards)
Security considerations
Share token security
Share token security
Data exposure
Data exposure
Shared dashboards expose:
- Aggregate statistics (visitor counts, pageviews, bounce rates)
- Geographic distribution
- Browser/OS/device breakdown
- Top pages and referrers
- Individual visitor IDs
- Session details
- Custom event data
- Goal conversion data
Use cases
Public Transparency
Share your website’s analytics publicly to demonstrate transparency
Client Reporting
Give clients view-only access to their website analytics
Team Collaboration
Share dashboards with stakeholders who don’t need full access
Embed in Documentation
Embed public dashboards in your documentation or blog
Related features
- Real-time Analytics - See what data is available in dashboards
- Export API - Download raw event data instead of sharing