Track pageviews for manual calls to navigate
This commit is contained in:
parent
652fb3cd3f
commit
6db4d72dc4
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ module.exports = class CocoRouter extends Backbone.Router
|
||||||
if (e.route is document.location.pathname) and not manualView
|
if (e.route is document.location.pathname) and not manualView
|
||||||
return document.location.reload()
|
return document.location.reload()
|
||||||
@navigate e.route, {trigger: not manualView}
|
@navigate e.route, {trigger: not manualView}
|
||||||
|
@_trackPageView()
|
||||||
return unless manualView
|
return unless manualView
|
||||||
if e.viewClass
|
if e.viewClass
|
||||||
args = e.viewArgs or []
|
args = e.viewArgs or []
|
||||||
|
|
Reference in a new issue