My google analytics in my ionic app doesn't report any active app user

Thx for the info @brandyshea, I’ve tried it again and to no avail, maybe you could check my code if that’s not bothering. Here’s my code :

.controller('homeController', function($scope,$http) {
    GetMainPage();
        function GetMainPage() {
            $http.get("http://xxxxx").
                success ( function(data) {
                    $scope.MainNews = data;
                })
            }
                
            if(typeof analytics !== 'undefined') { analytics.trackView("homeController"); }    
        }) 


.run(function($ionicPlatform, $ionicPopup) {
    $ionicPlatform.ready(function() {
        console.log(typeof analytics);
        if(typeof analytics !== 'undefined') {
            analytics.startTrackerWithId("UA-xxxx");
        } else {
            console.log("Google Analytics Unavailable");
            alert("Google Analytics Unavailable");
        }
    });
}); 

When i tested it in my android device, the alert didn’t show up which i presume that the plugin is working. But it doesn’t report anything.

I’m in deep, because no Android, and my country doesn’t show up which is Indonesia.