Javascript 角度ui路由器:如何调用$stateChangeStart with state.go({notify:false})?

Javascript 角度ui路由器:如何调用$stateChangeStart with state.go({notify:false})?,javascript,angularjs,google-analytics,angular-ui-router,Javascript,Angularjs,Google Analytics,Angular Ui Router,我有一个带ui路由器的角度SPA。我用的是无限卷轴 $state.go('someStateWithPagination', {page: page+1}, {notify: false, reload: false}) 但现在我需要整合谷歌分析。我想我可以用 $stateChangeStart,但在{notify:false}的情况下无法触发此事件,因为ui路由器未调用新状态。您能给我一些GA集成的解决方案吗?您可以使用下图中文档中提到的默认跟踪导航

我有一个带ui路由器的角度SPA。我用的是无限卷轴

$state.go('someStateWithPagination', {page: page+1}, {notify: false, reload: false})
但现在我需要整合谷歌分析。我想我可以用
$stateChangeStart
,但在
{notify:false}
的情况下无法触发此事件,因为ui路由器未调用新状态。您能给我一些GA集成的解决方案吗?

您可以使用下图中文档中提到的默认跟踪导航