```coffeescript
$(document).on 'page:change', ->
  if window._gaq?
    _gaq.push ['_trackPageview']
  else if window.pageTracker?
    pageTracker._trackPageview()```

Update Google Analytics script to reflect location of the user
user
```coffeescript
if window.history?.pushState and window.history.replaceState
  document.addEventListener 'page:change', (event) =>

  # Google Analytics
  if window.ga != undefined
    ga('set', 'location', location.href.split('#')[0])
    ga('send', 'pageview', {"title": document.title})
  else if window._gaq != undefined
    _gaq.push(['_trackPageview'])
  else if window.pageTracker != undefined
    pageTracker._trackPageview();```
assistant