Skip to content

Instantly share code, notes, and snippets.

@daveyoon
daveyoon / application_router.js.coffee
Last active December 20, 2015 00:19
Installing google universal analytics into a backbone application
initialize: ->
@bind 'all', @track_pageview
track_pageview: ->
url = Backbone.history.getFragment()
ga('send', 'pageview', "/#{url}")