Fix missing quotes for string value, #108

This commit is contained in:
Marc Bourqui 2018-09-24 17:07:01 +02:00
parent 30e9ddc7cf
commit 771848b428

View file

@ -131,6 +131,10 @@ class GoogleAnalyticsJsNode(Node):
for _, var in params:
name = var[0]
value = var[1]
try:
float(value)
except ValueError:
value = "'{}'".format(value)
commands.append(CUSTOM_VAR_CODE.format(
name=name,
value=value,