Closed cfgv closed 6 years ago
I believe you can. Have you checked the solution with a lambda? https://github.com/railslove/rack-tracker#google-analytics
It works
handler :google_tag_manager, { container: lambda { |env| env['TAG_MANAGER_ID'] } }
and for each scope into application_controller
set env tag manager
request.env['TAG_MANAGER_ID'] = XXXXXX
Thanks @DonSchado
Can I have different analytics IDs in the same application?