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)};