My Angular SPA uses ui-router for navigation and infinite scroll functionality. I currently implement infinite scroll by utilizing the following code snippet:
$state.go('someStateWithPagination', {page: page+1}, {notify: false, reload: false})
Now, I am faced with the challenge of integrating Google Analytics into my application. My initial thought was to leverage $stateChangeStart
, but this event does not get triggered when using {notify: false}
as ui-router does not initiate a new state transition. Can anyone suggest a workaround or solution for seamlessly integrating Google Analytics despite this limitation?