aterris / backbone.analytics

Simple Backbone and Google Analytics Integration
http://andrewterris.com/backbone.analytics/
MIT License
21 stars 8 forks source link

Track back button changes #1

Closed aterris closed 12 years ago

aterris commented 12 years ago

The current implementation of hooking into navigate will trigger pageview when the navigate method is used. However, if the user then presses the back button, a new page view (on the page they are returning to) will not be fired, but should.

To do this, might have to bind to popstate myself, but not sure yet if there is an easier way

aterris commented 12 years ago

I am pretty sure this is totally wrong and can just be closed, but its late, so I'm going to leave it open for now