Skip to content

Instantly share code, notes, and snippets.

@tracend
Forked from daveaugustine/Inside_your_router.coffee
Created July 3, 2012 23:25
Show Gist options
  • Save tracend/3044124 to your computer and use it in GitHub Desktop.
Save tracend/3044124 to your computer and use it in GitHub Desktop.
[DEPRECATED]: Super simple Google Analytics page tracking with backbone.js
initialize: ->
@bind 'all', @_trackPageview
_trackPageview: ->
url = Backbone.history.getFragment()
_gaq.push(['_trackPageview', "/#{url}"])
@tracend
Copy link
Author

tracend commented Feb 20, 2013

This tipbit has now become a feature for Backbone APP() at:
http://github.com/makesites/backbone-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment