System Requirements:
- CKAN 2.5+
Installation:
1. Activate your CKAN virtual environment
2. Install the extension:
pip install -e git+https://github.com/DataShades/ckanext-dga-stats.git#egg=ckanext-dga-stats
3. Add ‘dga_stats’ to ckan.plugins in your config file
4. Configure the two directives (optional):
dga.recent_time_period = 60
dga.recent_page_limit = 50
5. Restart CKAN
Configuration:
Time period for ‘recent’ statistics (in days)
Default: 60 days
dga.recent_time_period = 60
Page limit for recent datasets lists
Default: 50 items
dga.recent_page_limit = 50
Features:
- Remove private datasets from statistics (except ‘top users’ statistics)
- Summary page with overall statistics
- Activity summary page showing recent platform activity
- Organization public/private dataset count page
- Recently Created Datasets: Shows datasets created within recent_time_period
- Recently Updated Datasets: Shows datasets updated within recent_time_period
- Both recent lists limited to recent_page_limit items
Customizations from CKAN Built-in Stats:
1. Private Dataset Filtering:
- Private datasets excluded from most statistics
- Exception: Top users statistics still include private datasets
Additional Pages:
- Summary page: Overall statistics overview
- Activity summary: Recent platform activity
- Organization counts: Public vs private dataset counts per org
Configurable Recent Statistics:
- Time period: dga.recent_time_period (default 60 days)
- Page limit: dga.recent_page_limit (default 50 items)
- ‘Recently Created’ shows datasets created since (now - time_period)
- ‘Recently Updated’ shows datasets updated since (now - time_period)
Use Case:
- Designed specifically for data.gov.au portal requirements
- Better privacy handling for government data portals
- Enhanced reporting for portal administrators
- Configurable timeframes for ‘recent’ activity tracking
Development Status: Beta
Keywords: statistics, data.gov.au, reporting, analytics
License: (not specified in setup.py)
Note: This is a fork of CKAN’s core stats plugin with data.gov.au-specific customizations. For standard CKAN statistics, use the built-in stats plugin.