GTMonRails
GTMonRails enables you to integrate Google Tag Manager easy.
Read this in other languages: 日本語
Installation
Add this line to your application's Gemfile:
gem 'gtm_on_rails'
And then execute:
$ bundle
And then execute and initial settings:
$ rails g gtm_on_rails:install
Or install it yourself as:
$ gem install gtm_on_rails
Configure
container_id
data_layer_limit_byte_size
send_controller_and_action_in_data_layer
rescue_when_error_occurred
License
The gem is available as open source under the terms of the MIT License.