Skip to content

Commit

Permalink
disable-analytics-facet-for-guh
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Nov 18, 2024
1 parent ecf6b0b commit d812250
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions envergo/analytics/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def analytics(request):
We use matomo custom dimensions, but instead of storing raw data, it
was decided that we manually build the facets here."""

# Disable analytics facets for guichet unique de la haie
if request.site.domain == settings.ENVERGO_HAIE_DOMAIN:
return {}

visitor_id = request.COOKIES.get(VISITOR_COOKIE_NAME, None)
if not visitor_id:
return {}
Expand Down

0 comments on commit d812250

Please sign in to comment.