Skip to content

Commit

Permalink
ne pas traquer les requêtes ajax.
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Apr 20, 2021
1 parent ffc320e commit 62106de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/middlewares/matomomiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def matomo_track(self, request):
)

def process_response(self, request, response):
if response.status_code not in tracked_status_code:
if response.status_code not in tracked_status_code or request.is_ajax():
return response
# only on get
if request.method in tracked_methods:
Expand Down

0 comments on commit 62106de

Please sign in to comment.