Ignore page tracking options with angular

I am using Ui-router and in multi-segment states. I have a parameter as a Guid like in the example below (": numeroSolicitacao"):

     .state('solicitacoes/aprovacoes', {
        url: '/solicitacoes/aprovacoes/:numeroSolicitacao',
        views: {
           'conteudo-view@': angularAMD.route({
              templateUrl: 'js/app/visoes/solicitacoes/aprovacoes/aprovacoes.html',
              controller: 'ctrlAprovacoes',
              controllerUrl: 'controles/solicitacoes/aprovacoes/ctrlAprovacoes'
           })
        }
     })

      

Is there a way to make globally remove all parameters ": numeroSolicitacao" from a track event using angulartics? Otherwise, each click of this state will be a different page for Google Analytics.

Note. I add "$ analytics.pageTrack ('/ solicitacoes / aprovacoes'); in all controllers already, but as I said, I need a global implementation.

+3
angularjs angular-ui-router angulartics


source to share


No one has answered this question yet

Check out similar questions:

293
What's the most concise way to read request parameters in AngularJS?
nine
Angulartics GA events are not tracked
3
Using Angulartics and Google Analytics for Dynamic and Unique URLs
2
Track UI Router State Changes in Google Analytics
2
Angulartics doesn't track at all
1
Implement Google Analytics in angularJS1.5 app
0
Google Analytics does not show traffic, despite the fact that GTM
0
Tracking Google Analytics Events with Angulartics
0
Angulartics is not tracking my events on buttons or links



All Articles
Loading...
X
Show
Funny
Dev
Pics