Module: GtmOnRails::TagHelper
- Defined in:
- lib/gtm_on_rails/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_gtm_on_rails_tag_in_body ⇒ Object
10 11 12 13 14 |
# File 'lib/gtm_on_rails/tag_helper.rb', line 10 def render_gtm_on_rails_tag_in_body = [] << render(partial: 'gtm_on_rails/layouts/google_tag_manager_tag_in_body') .join.html_safe end |
#render_gtm_on_rails_tag_in_head ⇒ Object
3 4 5 6 7 8 |
# File 'lib/gtm_on_rails/tag_helper.rb', line 3 def render_gtm_on_rails_tag_in_head = [] << render(partial: 'gtm_on_rails/layouts/data_layer_tag') << render(partial: 'gtm_on_rails/layouts/google_tag_manager_tag_in_head') .join.html_safe end |