FIX: update Google Tag Manager javascript

This commit is contained in:
Neil Lalonde
2018-04-03 14:20:51 -04:00
parent 76d734ea6e
commit b7ecdb72d6
4 changed files with 17 additions and 7 deletions

View File

@ -5,9 +5,15 @@ module CommonHelper
end
end
def render_google_tag_manager_code
def render_google_tag_manager_head_code
if Rails.env.production? && SiteSetting.gtm_container_id.present?
render partial: "common/google_tag_manager"
render partial: "common/google_tag_manager_head"
end
end
def render_google_tag_manager_body_code
if Rails.env.production? && SiteSetting.gtm_container_id.present?
render partial: "common/google_tag_manager_body"
end
end
end