kangguru/rack-google-analytics — pull request #45 by remiprev (2014-05-14 14:31:54+00:00)
Title: Add track_pageview option to make it easier to use with Turbolinks

This pull request adds a `track_pageview` option (which is `true` by default, to keep existing behavior). When used, it does not outputs the `ga('send', 'pageview')` line in the tracker code.

We’re using this to make the middleware play nice with [Turbolinks](https://github.com/rails/turbolinks) which does not evaluate `

…

```

And manually track our pageviews in a `

```

What do you think? It doesn’t not anything if the option is not used :smile: