From a8be59d7a220630c51193c49dc137a51d28dee57 Mon Sep 17 00:00:00 2001 From: Andrii Marynets Date: Thu, 13 Jul 2017 22:53:15 +0300 Subject: [PATCH 1/2] Add GA to all important apps --- digitalglarus/templates/new_base_glarus.html | 19 ++++++---- dynamicweb/settings/base.py | 5 ++- hosting/templates/hosting/base.html | 19 ++++++---- hosting/templates/hosting/base_short.html | 3 ++ hosting/templates/hosting/beta.html | 19 ++++++---- .../templates/hosting/hosting_pricing.html | 4 +- .../cms/ungleichch/base_ungleich.html | 20 ++++++---- .../templates/ungleich_page/landing.html | 37 ++++++++++--------- 8 files changed, 75 insertions(+), 51 deletions(-) diff --git a/digitalglarus/templates/new_base_glarus.html b/digitalglarus/templates/new_base_glarus.html index 826b49c0..1c4cd4c4 100644 --- a/digitalglarus/templates/new_base_glarus.html +++ b/digitalglarus/templates/new_base_glarus.html @@ -46,16 +46,19 @@ - + + + {% include 'google_analytics.html' %} + {% endwith %} - + + + {% include "google_analytics.html" %} + diff --git a/hosting/templates/hosting/base_short.html b/hosting/templates/hosting/base_short.html index c3b19c8c..6a08b97b 100644 --- a/hosting/templates/hosting/base_short.html +++ b/hosting/templates/hosting/base_short.html @@ -40,6 +40,9 @@ + + {% include "google_analytics.html" %} + diff --git a/hosting/templates/hosting/beta.html b/hosting/templates/hosting/beta.html index 68cbb5a9..caecdb82 100644 --- a/hosting/templates/hosting/beta.html +++ b/hosting/templates/hosting/beta.html @@ -31,16 +31,19 @@ - + + + {% include 'google_analytics.html' %} + diff --git a/hosting/templates/hosting/hosting_pricing.html b/hosting/templates/hosting/hosting_pricing.html index c6ae33d0..9032ddd6 100644 --- a/hosting/templates/hosting/hosting_pricing.html +++ b/hosting/templates/hosting/hosting_pricing.html @@ -18,7 +18,9 @@ - + + {% include 'google_analytics.html' %} + diff --git a/ungleich/templates/cms/ungleichch/base_ungleich.html b/ungleich/templates/cms/ungleichch/base_ungleich.html index 30dfdeb9..2acadfce 100644 --- a/ungleich/templates/cms/ungleichch/base_ungleich.html +++ b/ungleich/templates/cms/ungleichch/base_ungleich.html @@ -34,6 +34,10 @@ {% endblock %} {% render_block "external-css" %} {% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %} + + + {% include "google_analytics.html" %} + @@ -60,16 +64,16 @@ {% bootstrap_javascript %} {% endaddtoblock %} {% addtoblock "js" %} - + - + + + {% include "google_analytics.html" %} + From c7feed6a7354c8ca9e45383fa6edd464d532bf42 Mon Sep 17 00:00:00 2001 From: Andrii Marynets Date: Thu, 13 Jul 2017 23:50:11 +0300 Subject: [PATCH 2/2] Delete commented code --- digitalglarus/templates/new_base_glarus.html | 10 ---------- dynamicweb/settings/base.py | 1 + hosting/templates/hosting/base.html | 9 --------- hosting/templates/hosting/beta.html | 9 --------- .../cms/ungleichch/base_ungleich.html | 9 --------- .../templates/ungleich_page/landing.html | 20 ------------------- 6 files changed, 1 insertion(+), 57 deletions(-) diff --git a/digitalglarus/templates/new_base_glarus.html b/digitalglarus/templates/new_base_glarus.html index 1c4cd4c4..3b18756d 100644 --- a/digitalglarus/templates/new_base_glarus.html +++ b/digitalglarus/templates/new_base_glarus.html @@ -45,17 +45,7 @@ - - - - - - - - - - {% include 'google_analytics.html' %} diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 9ff09b8d..bd6e30e3 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -518,6 +518,7 @@ GOOGLE_ANALYTICS_PROPERTY_IDS = { 'ungleich.ch': 'UA-62285904-1', 'digitalglarus.ch': 'UA-62285904-2', 'blog.ungleich.ch': 'UA-62285904-4', + 'hosting': 'UA-62285904-5', 'datacenterlight.ch': 'UA-62285904-9', '127.0.0.1:8000': 'localhost', diff --git a/hosting/templates/hosting/base.html b/hosting/templates/hosting/base.html index 43147323..b485451f 100644 --- a/hosting/templates/hosting/base.html +++ b/hosting/templates/hosting/base.html @@ -45,16 +45,7 @@ } {% endwith %} - - - - - - - - - {% include "google_analytics.html" %} diff --git a/hosting/templates/hosting/beta.html b/hosting/templates/hosting/beta.html index caecdb82..bdf37f58 100644 --- a/hosting/templates/hosting/beta.html +++ b/hosting/templates/hosting/beta.html @@ -31,16 +31,7 @@ - - - - - - - - - {% include 'google_analytics.html' %} diff --git a/ungleich/templates/cms/ungleichch/base_ungleich.html b/ungleich/templates/cms/ungleichch/base_ungleich.html index 2acadfce..ac073c4c 100644 --- a/ungleich/templates/cms/ungleichch/base_ungleich.html +++ b/ungleich/templates/cms/ungleichch/base_ungleich.html @@ -64,16 +64,7 @@ {% bootstrap_javascript %} {% endaddtoblock %} {% addtoblock "js" %} - - - - - - - - - --> {% include "google_analytics.html" %}