Piwik support for uData
Project description
uData-piwik
This plugin provide integration between uData and Piwik
Compatibility
udata-piwik requires Python 2.7+ and uData.
Installation
Install uData.
Remain in the same virtual environment (for Python) and use the same version of npm (for JS).
Install udata-piwik:
pip install udata-piwik
Modify your local configuration file of udata (typically, udata.cfg) as following:
PLUGINS = ['piwik']
# Tracked site id in Piwik
PIWIK_ID = 1
PIWIK_URL = 'stats.data.gouv.fr'
PIWIK_AUTH = '<32-chars-auth-token-from-piwik>'
# Mapping of piwik goals {'<name_in_udata>': <id_in_piwik>}
# All keys are required
PIWIK_GOALS = {
'NEW_DATASET': 1,
'NEW_REUSE': 2,
'NEW_FOLLOW': 3,
'SHARE': 4,
'RESOURCE_DOWNLOAD': 5,
'RESOURCE_REDIRECT': 6,
}
# `client.track` method `requests` timeout
PIWIK_TRACK_TIMEOUT = 60 # in seconds
# `client.analyze` method `requests` timeout
PIWIK_ANALYZE_TIMEOUT = 60 * 5 # in seconds
Changelog
Current (in progress)
Nothing yet
0.9.3 (2017-12-11)
Add a timeout to analyze() #19
0.9.2 (2017-12-11)
Add a timeout to track() #18
0.9.1 (2017-01-10)
Fix build and packaging
0.9.0 (2017-01-10)
First published release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for udata_piwik-0.9.4.dev42-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cddba3663cc09caddcb756e394c606e11785ed106ca4c1c1e37be140ea6b3a49 |
|
MD5 | 78baadea70c05535d4fbb0fd790367c4 |
|
BLAKE2b-256 | 0803b2594b9a18600c13a62556950e814ae06818d796e0c8e7cfb7e20d624fab |