Jan 2017
This is a plugin for superdesk-client-core and superdesk-core. It adds an analytics application page with its API endpoints.
In order to see the analytics feature in the application, you need to enable it.
In client/superdesk.config.js
from superdesk
, add this line
features : {analytics: true},
This will import the superdesk-analytics
node module and load the superdesk.analytics
angular module in the main angular application.
Add the following line in the package.json file, dependencies:
"superdesk-analytics": "superdesk/superdesk-analytics#c7f7145"
Run the command:
npm install
This will install the analytics module.
--- a/server/settings.py
+++ b/server/settings.py
@@ -132,7 +131,8 @@ INSTALLED_APPS.extend([
+ 'analytics',
])
Add the following line in the requirements.txt file:
git+git://github.com/superdesk/superdesk-analytics.git@c7f7145#egg=superdesk-analytics
Run the command:
pip install -r requirements.txt
This will install the analytics package.
Download and install
git clone git@github.com:superdesk/superdesk-analytics.git
make install
Run the tests
source server/env/bin/activate
make test
Connect the repository to superdesk-client-core
npm link
cd /path/to/superdesk-client-core
npm link superdesk-analytics
Connect the repository to superdesk-core
cd /path/to/superdesk-core
source env/bin/activate
pip install -e /path/to/superdesk-analytics