Skip to content

Commit

Permalink
le token est obligatoire pour traquer l'url
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed May 17, 2021
1 parent 62106de commit 56002e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion zds/middlewares/matomomiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

from zds.member.views import get_client_ip

matomo_api_url = "{}/matomo.php".format(settings.ZDS_APP["site"]["matomoUrl"])
matomo_token_auth = settings.ZDS_APP["site"]["matomoTokenAuth"]
matomo_api_url = "{}/matomo.php?token_auth={}".format(settings.ZDS_APP["site"]["matomoUrl"], matomo_token_auth)
matomo_site_id = settings.ZDS_APP["site"]["matomoSiteID"]
matomo_api_version = 1
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions zds/settings/abstract_base/zds.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"la communauté.",
"googleAnalyticsID": zds_config.get("google_analytics_id"),
"googleTagManagerID": zds_config.get("google_tag_manager_id"),
"matomoSiteID": zds_config.get("matomo_site_id", 3),
"matomoSiteID": zds_config.get("matomo_site_id", 4),
"matomoUrl": zds_config.get("matomo_url", "https://matomo.zestedesavoir.com"),
"matomoTokenAuth": zds_config.get("matomo_token_auth", "b8f815cd5ad1e90af9d03c1dd8a544d5"),
"matomoTokenAuth": zds_config.get("matomo_token_auth", "2fa86dde2945cac5d1a7fa224e10e191"),
"association": {
"name": "Zeste de Savoir",
"fee": zds_config.get("association_fee", "20 €"),
Expand Down

0 comments on commit 56002e4

Please sign in to comment.