Skip to content

Commit

Permalink
minor fix to analytics config
Browse files Browse the repository at this point in the history
  • Loading branch information
mhl10 committed Feb 4, 2020
1 parent aa38dbb commit 0aa0c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browse/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@
BROWSE_SITE_HOST = os.environ.get('BROWSE_SITE_HOST', None)
"""This is similar to, but decoupled from SERVER_NAME."""

BROWSE_ANALYTICS_ENABLED = os.environ.get('BROWSE_ANALYTICS_ENABLED', False)
BROWSE_ANALYTICS_ENABLED = bool(int(os.environ.get(
'BROWSE_ANALYTICS_ENABLED', '0')))
"""Enable/disable Matomo web analytics."""
BROWSE_ANALYTICS_BASE_URL = os.environ.get('BROWSE_ANALYTICS_BASE_URL',
'https://webstats.arxiv.org/')
Expand Down

0 comments on commit 0aa0c3a

Please sign in to comment.