Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix codeclimate issues

primal1009beb15650602
diff --git a/saleor/core/analytics.py b/saleor/core/analytics.py
index d7d1ad4377..cd31f83f57 100644
--- a/saleor/core/analytics.py
+++ b/saleor/core/analytics.py
@@ -21,10 +21,11 @@ def get_client_id(request):
@shared_task
-def ga_report(tracking_id, client_id, what, extra_info, extra_headers):
+def ga_report(tracking_id, client_id, what, extra_info=None, extra_headers=None):
ga.report(tracking_id, client_id, what, extra_info=extra_info,
extra_headers=extra_headers)
+
def _report(client_id, what, extra_info=None, extra_headers=None):
tracking_id = getattr(settings, 'GOOGLE_ANALYTICS_TRACKING_ID', None)
if tracking_id and client_id: