DataViewAnalytics CKAN Extension
This extension displays analytics on resources by analysing the country and occupation of visitors to every resource/data.
This extension is presently on development and is not officially released for use yet. You should only install if you are a developer and want to contribute to the project.
To install and set up CKAN, visit CKAN Documentation
Then follow the steps below to install the DataViewAnalytics extension:
Step 1:
- Activate your virtual environment; use the path to your virtual environment. On Mac OSX, you may have to use
/usr/local/lib/ckan/default/bin/activate. You can copy the code as is below, including the preceeding dot.
. /usr/lib/ckan/default/bin/activate
Step 2:
You can download the source code and install the extension manually. To do so, execute the following command:
pip install -e git+https://github.com/shemogumbe/ckanext-dataviewanalytics.git#egg=ckanext-dataviewanalytics
Alternatively: You can clone this repo (preferably into the /src directory where you installed CKAN), cd into ckanext-dataviewanalytics and run
python setup.py develop
Install necessary requirements
pip install -r requirements.txt
Step 3:
- Modify your configuration file (generally in
/etc/ckan/default/production.ini) and add dataviewanalytics to the ckan.plugins property.
ckan.plugins = dataviewanalytics <OTHER_PLUGINS>
Step 4:
paster serve /etc/ckan/default/production.ini
OR
paster serve --reload /etc/ckan/default/production.ini
With --reload, your server is restarted automatically whenever you make changes to your source code.
Support
If you’ve found a bug/issue in the extension, please open a new issue [here](https://github.com/shemogumbe/ckanext-data