From 0de57cbe29dd654a6f883b9fffe98b7af499515f Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Wed, 21 Aug 2013 10:15:48 +0100 Subject: [PATCH] Made GA async --- core/analytics/google.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/core/analytics/google.py b/core/analytics/google.py index ea9a010..4f3c590 100755 --- a/core/analytics/google.py +++ b/core/analytics/google.py @@ -1,10 +1,12 @@ from django import template from dss import settings + register = template.Library() + class ShowGoogleAnalyticsJS(template.Node): def render(self, context): - code = getattr(settings, "GOOGLE_ANALYTICS_CODE", False) + code = getattr(settings, "GOOGLE_ANALYTICS_CODE", False) if not code: return "" @@ -15,13 +17,17 @@ class ShowGoogleAnalyticsJS(template.Node): return "" return """ - - + """ \ No newline at end of file