diff --git a/pombola/settings/south_africa.py b/pombola/settings/south_africa.py index 57d25cc63..297a4af39 100644 --- a/pombola/settings/south_africa.py +++ b/pombola/settings/south_africa.py @@ -26,7 +26,7 @@ PIPELINE['STYLESHEETS'].update(COUNTRY_CSS) PIPELINE['JAVASCRIPT'].update(COUNTRY_JS) -EXCLUDE_FROM_SEARCH = ('places', 'info_pages'); +EXCLUDE_FROM_SEARCH = ('places', 'info_pages') pmg_api_cache_dir = os.environ.get('PMG_API_CACHE_DIR', 'pmg_api_cache') PMG_API_CACHE_PATH = os.path.join(data_dir, pmg_api_cache_dir) @@ -44,3 +44,6 @@ }, 'TIMEOUT': 60*60*24, } + + +GOOGLE_ANALYTICS_ID = 'G-RK0Z57HMF6' \ No newline at end of file diff --git a/pombola/templates/default_base.html b/pombola/templates/default_base.html index 4340132b6..5438f107b 100644 --- a/pombola/templates/default_base.html +++ b/pombola/templates/default_base.html @@ -63,17 +63,14 @@ crosshairs_image: '{% static 'images/crosshairs.png' %}', google_recaptcha_site_key: '{{ settings.GOOGLE_RECAPTCHA_SITE_KEY }}' }; - - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', pombola_settings.google_analytics_account); - ga('send', 'pageview'); - + {% load pipeline %}