Fix: global name 'commands' is not defined, #108

This commit is contained in:
Marc Bourqui 2018-09-24 15:52:08 +02:00
parent d76c72e2a5
commit b837a20ed4

View file

@ -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(