diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index baf25cfeb..dff7894ba 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -54,6 +54,6 @@
=link_to 'Contact', "mailto:"+t('dynamics.contact_email')
-
+ = render partial: 'layouts/google_analytics'
diff --git a/config/deploy.rb b/config/deploy.rb
index cfa3be8aa..9159356bc 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -99,6 +99,7 @@ set :shared_paths, [
'config/initializers/mailjet.rb',
'config/initializers/storage_url.rb',
'app/views/root/landing.html.haml',
+ 'app/views/layouts/_google_analytics.html',
'app/views/cgu/index.html.haml'
]
@@ -143,6 +144,9 @@ task :setup => :environment do
queue! %[mkdir -p "#{deploy_to}/shared/views/cgu"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/views/cgu"]
+ queue! %[mkdir -p "#{deploy_to}/shared/views/layouts"]
+ queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/views/layouts"]
+
queue! %[mkdir -p "#{deploy_to}/shared/config/locales/dynamics"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/locales/dynamics"]