-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from noirbizarre/default-settings
Consolidate and expose default settings
- Loading branch information
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
''' | ||
Default settings for udata-piwik | ||
''' | ||
# Piwik/Matomo instance URL | ||
PIWIK_URL = None | ||
|
||
# Scheme used to make Piwik/Matomo API calls (http or https) | ||
PIWIK_SCHEME = 'http' | ||
|
||
# Piwik/Matomo site ID | ||
PIWIK_ID = 1 | ||
|
||
# Authentication token from Piwik/Matomo | ||
PIWIK_AUTH = '<32-chars-auth-token-from-piwik>' | ||
|
||
# Piwik/Matomo Goals mapping | ||
# All keys are required and should exists on instance | ||
PIWIK_GOALS = { | ||
# 'NEW_DATASET': 1, | ||
# 'NEW_REUSE': 2, | ||
# 'NEW_FOLLOW': 3, | ||
# 'SHARE': 4, | ||
# 'RESOURCE_DOWNLOAD': 5, | ||
# 'RESOURCE_REDIRECT': 6, | ||
} | ||
|
||
# Piwik/Matomo reporting analyse timeout in seconds | ||
PIWIK_ANALYZE_TIMEOUT = 60 * 5 | ||
|
||
# Piwik/Matomo tracking submission timeout in seconds | ||
PIWIK_TRACK_TIMEOUT = 60 |