Analytics Configuration
Use Bublik's optional analytics to help admins understand which pages users visit and which actions they take most often.
Analytics is disabled by default.
What You Need
Before enabling analytics:
- Your Bublik instance should be updated to
v2.11.0or newer. - The analytics page is available only to admin users so you must be logged in.
Non-Docker Deploy
If you manage the backend directly, enable analytics with these steps:
-
Update the backend if needed:
./scripts/deploy --steps general_conf pip_requirements django_settings run_services -
Enable analytics in
bublik/general.conf:ANALYTICS_ENABLE="True" -
Apply the updated Django settings and restart services:
./scripts/deploy --steps django_settings run_services -
Activate the virtual environment:
source .env/bin/activate -
Run analytics database migrations:
python manage.py migrate analytics
Docker Deploy
For Docker deployments, add these variables to your .env file:
ANALYTICS_ENABLED=true
ANALYTICS_DB_PATH=/app/bublik/logs/analytics.sqlite3
Then apply the update:
task pulltask up
If ANALYTICS_ENABLED is missing or set to false, analytics remains disabled.
Verify the Setup
After configuration:
- Sign in as an admin user.
- Open the Analytics page in Bublik under Admin section.
- Confirm that page visits and actions begin appearing after usage.