kangguru / rack-google-analytics

Simple Rack middleware for implementing google analytics tracking in your Ruby-Rack based project. Supports synchronous and asynchronous insertion and configurable load options
MIT License
257 stars 53 forks source link

Allow multiple trackers #52

Open kueda opened 9 years ago

kueda commented 9 years ago

This allows you to specify multiple trackers as an array of arrays, e.g. [['name1','horchata'], ['name2','slurpee']], or as a block that gets called with each request. The first tracker doesn't really require a name, but the subsequent ones do.