Google Analytics trackEvent() doesn't work

I’m trying to setup Google Analytics on my app. I can see when user open the app, but the events isn’t working.

This is my code:

ionViewDidLoad() {'UA-XXXXX-X')
    .then(() => {
       console.log('Google analytics is ready now');'My Page');;
    .catch(e => console.log('Error starting GoogleAnalytics', e));
goToPage() {'Navigate', 'PageView', 'Info')
    .then(() => {
        console.log('Track Event ok');

I’m receiving the log “Track Event ok” but I can’t see the event on Google Analytics Console.

Did I forget something?


What plugin are you using?

I’m using the native plugin:

OK, I’m still using ionic1, remember that events are asynchronous, really asynchronous :wink: Sometimes you have to wait for several minutes…