From 25df057d057c49713239d0bfd0a6cb8d19f07965 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 16 Jul 2019 15:05:43 +0100 Subject: [PATCH] Move spree/layouts/admin/add_analytics deface to spree/layouts/admin view --- .../spree/layouts/admin/add_analytics.html.haml.deface | 3 --- app/views/spree/layouts/admin.html.haml | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 app/overrides/spree/layouts/admin/add_analytics.html.haml.deface diff --git a/app/overrides/spree/layouts/admin/add_analytics.html.haml.deface b/app/overrides/spree/layouts/admin/add_analytics.html.haml.deface deleted file mode 100644 index ced2d1b7b6..0000000000 --- a/app/overrides/spree/layouts/admin/add_analytics.html.haml.deface +++ /dev/null @@ -1,3 +0,0 @@ -/ insert_bottom "[data-hook='admin_footer_scripts']" - -= render 'spree/shared/google_analytics' diff --git a/app/views/spree/layouts/admin.html.haml b/app/views/spree/layouts/admin.html.haml index e8a9bef029..bce34766e9 100644 --- a/app/views/spree/layouts/admin.html.haml +++ b/app/views/spree/layouts/admin.html.haml @@ -71,5 +71,7 @@ %div{"data-hook" => "admin_footer_scripts"} + = render 'spree/shared/google_analytics' + :javascript Spree.api_key = #{raw(try_spree_current_user.try(:spree_api_key).to_s.inspect)};