Module: GoogleTagManager::Rails::ViewHelpers

Defined in:
lib/google-tag-manager/rails/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#google_tag_managerObject



5
6
7
8
9
# File 'lib/google-tag-manager/rails/view_helpers.rb', line 5

def google_tag_manager
  return "" unless GoogleTagManager.valid_gtm_id?

  GoogleTagManager.to_html.html_safe
end