From b837a20ed4eb866dc143d5094681deeb537df59a Mon Sep 17 00:00:00 2001 From: Marc Bourqui Date: Mon, 24 Sep 2018 15:52:08 +0200 Subject: [PATCH] Fix: global name 'commands' is not defined, #108 --- analytical/templatetags/google_analytics_js.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytical/templatetags/google_analytics_js.py b/analytical/templatetags/google_analytics_js.py index 46ef432..9fd85dd 100644 --- a/analytical/templatetags/google_analytics_js.py +++ b/analytical/templatetags/google_analytics_js.py @@ -67,7 +67,7 @@ class GoogleAnalyticsJsNode(Node): import json create_fields = self._get_domain_fields(context) create_fields.update(self._get_other_create_fields(context)) - commands.extend(self._get_custom_var_commands(context)) + commands = self._get_custom_var_commands(context) commands.extend(self._get_other_commands(context)) display_features = getattr(settings, 'GOOGLE_ANALYTICS_DISPLAY_ADVERTISING', False) html = SETUP_CODE.format(