Move spree/layouts/admin/add_analytics deface to spree/layouts/admin view

This commit is contained in:
luisramos0
2019-07-16 15:05:43 +01:00
parent 24a9991162
commit 25df057d05
2 changed files with 2 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
/ insert_bottom "[data-hook='admin_footer_scripts']"
= render 'spree/shared/google_analytics'

View File

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