railslove / rack-tracker

Tracking made easy: Don’t fool around with adding tracking and analytics partials to your app and concentrate on the things that matter.
https://www.railslove.com/open-source
MIT License
647 stars 121 forks source link

Add support for different tracker locations for google tag manager #84

Closed bumi closed 7 years ago

bumi commented 7 years ago

This allows handlers to define an #inject(response) method to directly manipulate the response html. The google tag manager handler uses this to inject a snippet into the head and one snippet into the body (as required by google)