diff --git a/analytical/templatetags/chartbeat.py b/analytical/templatetags/chartbeat.py
index c7b88c2..dc03a98 100644
--- a/analytical/templatetags/chartbeat.py
+++ b/analytical/templatetags/chartbeat.py
@@ -13,7 +13,7 @@ from analytical.utils import disable_html, get_required_setting, is_internal_ip
USER_ID_RE = re.compile(r"^\d+$")
INIT_CODE = (
- """"""
+ ''
)
SETUP_CODE = """
".format(
- placeholder_url="//dnn506yrbagrg.cloudfront.net/pages/scripts/"
- "%(account_nr_1)s/%(account_nr_2)s.js"
- )
+ '"
)
USERVAR_CODE = "CE2.set(%(varnr)d, '%(value)s');"
diff --git a/analytical/templatetags/google_analytics.py b/analytical/templatetags/google_analytics.py
index f597d9e..dd1d4c9 100644
--- a/analytical/templatetags/google_analytics.py
+++ b/analytical/templatetags/google_analytics.py
@@ -46,7 +46,7 @@ NO_ALLOW_HASH_CODE = "_gaq.push(['_setAllowHash', false]);"
TRACK_PAGE_VIEW = "_gaq.push(['_trackPageview']);"
ALLOW_LINKER_CODE = "_gaq.push(['_setAllowLinker', true]);"
CUSTOM_VAR_CODE = (
- "_gaq.push(['_setCustomVar', %(index)s, '%(name)s', " "'%(value)s', %(scope)s]);"
+ "_gaq.push(['_setCustomVar', %(index)s, '%(name)s', '%(value)s', %(scope)s]);"
)
SITE_SPEED_CODE = "_gaq.push(['_trackPageLoadTime']);"
ANONYMIZE_IP_CODE = "_gaq.push(['_gat._anonymizeIp']);"
diff --git a/tests/unit/test_tag_chartbeat.py b/tests/unit/test_tag_chartbeat.py
index cb1d6e2..1db2624 100644
--- a/tests/unit/test_tag_chartbeat.py
+++ b/tests/unit/test_tag_chartbeat.py
@@ -22,12 +22,12 @@ class ChartbeatTagTestCaseNoSites(TestCase):
@override_settings(
- INSTALLED_APPS=(
+ INSTALLED_APPS=[
"analytical",
"django.contrib.sites",
"django.contrib.auth",
"django.contrib.contenttypes",
- )
+ ]
)
@override_settings(CHARTBEAT_USER_ID="12345")
class ChartbeatTagTestCaseWithSites(TestCase):