mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: update Google Tag Manager javascript
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user