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

Allow disabling explicit pageview sends for GA #141

Closed ChrisCoffey closed 5 years ago

ChrisCoffey commented 5 years ago

My colleague @gasi recently noticed that our site was both sending GA's standard pageview event, as well as submitting a separate Page/view event. We aren't particularly interested in sending the explicit pageviews, so I've added an override that allows callers to disable it.

The default is to still send the explicit pageview though, so this is backwards compatible.