Frequently Asked Questions
General questions and answers about OpenSite Analytics.
General
What is OpenSite Analytics?
OpenSite Analytics is a self-hosted, privacy-focused web analytics platform that allows you to track website performance without sharing data with third-party services. It provides real-time analytics, multi-domain support, and custom event tracking.
Is OpenSite Analytics free?
Yes, OpenSite Analytics is open-source and free to use. You can host it on your own server without any licensing fees.
What are the system requirements?
- Python 3.13 or higher
- Node.js 18 or higher
- SQLite (included) or PostgreSQL/MySQL (optional)
- 1GB RAM minimum (2GB+ recommended)
- 10GB disk space minimum
Can I use OpenSite Analytics for commercial purposes?
Yes, OpenSite Analytics is released under the MIT License, which allows commercial use.
Installation & Setup
How do I install OpenSite Analytics?
See the Installation Guide for detailed installation instructions.
Can I run this on shared hosting?
It's not recommended. OpenSite Analytics requires:
- Python and Node.js support
- Ability to run background processes
- Database access
- WebSocket support
Consider VPS or dedicated hosting instead.
Can I use Docker for deployment?
Yes, Docker deployment is recommended. See the Deployment Guide for Docker instructions.
How do I update to the latest version?
- Backup your database
-
Pull latest changes:
:::bash
git pull origin main
-
Update dependencies:
:::bash
cd backend && pip3 install -r requirements.txt
cd ../frontend && npm install
-
Run any database migrations
- Restart services
Features
What data does OpenSite Analytics collect?
OpenSite Analytics collects:
- Page views and URLs
- Referrer information
- User agent (browser, OS, device)
- IP address (for location detection)
- Custom events
- Session data
Is my data private?
Yes, all data is stored on your own server. You have full control over your data and can delete it at any time.
Does OpenSite Analytics support real-time analytics?
Yes, real-time analytics are supported via WebSocket connections. You can see live page views and events as they happen.
Can I track multiple websites?
Yes, you can add multiple sites to your dashboard and track them all from a single account.
Does OpenSite Analytics support UTM parameters?
Yes, UTM parameters are automatically tracked and can be viewed in the referrer analytics.
Can I track custom events?
Yes, you can track custom events using the JavaScript SDK:
OpenSite('trackEvent', 'button_click', {
button: 'signup',
location: 'homepage'
});
What is the data retention policy?
By default, data is retained for 90 days. You can configure this in the backend .env file:
Tracking
How do I add the tracking code to my website?
- Create a site in your dashboard
- Copy the tracking code provided
- Paste it into the
<head> section of your website
- Replace
YOUR_SITE_KEY and YOUR_API_KEY with your actual keys
Where should I place the tracking code?
Place the tracking code in the <head> section of your HTML for the most accurate tracking.
Does the tracking code affect page load time?
The tracking code is asynchronous and has minimal impact on page load time (< 50ms).
Can I track single-page applications (SPAs)?
Yes, the tracking SDK supports SPAs. You can manually track page views:
OpenSite('trackPageview', '/new-page');
Does OpenSite Analytics respect Do Not Track (DNT)?
Currently, DNT is not enforced. You can implement DNT checking in your tracking code if needed.
Can I exclude my own visits?
Yes, you can filter by IP address or create a browser extension to disable tracking for your own visits.
How accurate is the geographic data?
Geographic data is based on IP address lookup and is generally accurate at the country level. City-level accuracy varies.
Security
Is OpenSite Analytics secure?
OpenSite Analytics includes:
- JWT-based authentication
- Password hashing with bcrypt
- Rate limiting
- CORS protection
- SQL injection prevention
However, you must:
- Use strong passwords
- Keep dependencies updated
- Use HTTPS in production
- Configure firewall rules
Should I change the default admin password?
Yes, change the default password immediately after installation. The default credentials are:
- Email:
admin@example.com
- Password:
admin123
How do I secure my installation?
- Change default credentials
- Generate strong SECRET_KEY
- Use HTTPS
- Configure firewall
- Keep dependencies updated
- Regular backups
See the Security Guide for more details.
Can I use OpenSite Analytics behind a corporate firewall?
Yes, but you may need to:
- Whitelist the tracking script URL
- Configure CORS origins
- Adjust firewall rules
- Use WebSocket if needed
How many page views can OpenSite Analytics handle?
Performance depends on your server:
- SQLite: ~10,000 page views/day
- PostgreSQL: ~100,000+ page views/day
- With optimization: 1M+ page views/day
- Use PostgreSQL instead of SQLite
- Add database indexes
- Implement caching
- Use connection pooling
- Optimize queries
- Use read replicas for analytics
See the Architecture Guide for performance tips.
Does OpenSite Analytics use caching?
Currently, caching is not implemented. You can add Redis caching for improved performance.
How much disk space does OpenSite Analytics use?
Approximate usage:
- 1,000 page views: ~1MB
- 100,000 page views: ~100MB
- 1,000,000 page views: ~1GB
This varies based on data retention and event complexity.
Integration
Yes, you can:
- Use the REST API
- Export data (feature coming soon)
- Set up webhooks (feature coming soon)
- Use custom integrations
Does OpenSite Analytics have an API?
Yes, see the API Documentation for complete API reference.
Can I use OpenSite Analytics with WordPress?
Yes, you can add the tracking code to WordPress via:
- Custom plugin
- Theme functions.php
- Page builder integration
Can I use OpenSite Analytics with React/Vue/Angular?
Yes, the tracking SDK works with all JavaScript frameworks. For SPAs, use manual page view tracking.
Does OpenSite Analytics support mobile apps?
Currently, web tracking only. Mobile app support can be added using the REST API.
Troubleshooting
Why is my tracking not working?
Common issues:
- Tracking code not installed correctly
- Wrong site_key or api_key
- Site not active
- Backend not running
- CORS issues
Check the Troubleshooting Guide for detailed solutions.
Why are my analytics showing 0?
- Verify tracking code is installed
- Check browser console for errors
- Test tracking endpoint directly
- Ensure site is active
- Check data retention settings
How do I reset my password?
Currently, password reset is not implemented. You can:
- Reinitialize database (loses all data)
- Manually update password in database
- Use the API to update password (if authenticated)
Why is the dashboard loading slowly?
Possible causes:
- Large dataset
- Slow database queries
- Network latency
- Server resources
See the Troubleshooting Guide for solutions.
Comparison
How does OpenSite Analytics compare to Google Analytics?
OpenSite Analytics:
- Self-hosted, data stays on your server
- No data sharing with third parties
- Privacy-focused
- Customizable
- No vendor lock-in
Google Analytics:
- Cloud-hosted
- Data shared with Google
- More features
- Free tier available
- Easier setup
How does OpenSite Analytics compare to Matomo?
Both are self-hosted analytics platforms:
- OpenSite Analytics: Modern stack (FastAPI + Next.js), simpler setup
- Matomo: PHP-based, more mature, more features
Can I migrate from Google Analytics?
You can:
- Install OpenSite Analytics
- Add tracking code alongside GA
- Compare data
- Remove GA when satisfied
Data import from GA is not currently supported.
Support
Where can I get help?
- Documentation: Check the docs folder
- GitHub Issues: Report bugs and request features
- Discussions: Ask questions and share ideas
Is commercial support available?
Currently, commercial support is not available. Community support is available through GitHub.
How do I report a bug?
Create a GitHub issue with:
- Description of the bug
- Steps to reproduce
- Expected behavior
- Actual behavior
- Environment details
- Logs/screenshots
How do I request a feature?
Create a GitHub issue with:
- Feature description
- Use case
- Proposed implementation (optional)
- Priority
Licensing
What license is OpenSite Analytics released under?
MIT License. See LICENSE.md for details.
Can I modify the code?
Yes, the MIT License allows modification. You can:
- Fork the repository
- Make changes
- Distribute your version
- Use it commercially
Can I remove the attribution?
Yes, the MIT License does not require attribution. However, attribution is appreciated.
Future Plans
What features are planned?
- User roles and permissions
- Team collaboration
- Email reports
- Data export
- Webhooks
- Mobile app tracking
- A/B testing
- Funnel analysis
- Heatmaps
- Session recordings
When will feature X be released?
Check the GitHub issues and milestones for feature roadmaps. Community contributions are welcome!
How can I contribute?
See the Contributing Guide for details on how to contribute to OpenSite Analytics.