reywood/meteor-iron-router-ga not working with mob

2019-04-02 23:39发布

I am using reywood/meteor-iron-router-ga package for my Google analytics but i do not know why events or Real time events are not logged from mobile app. I did simple configurations for this but not worked. I also used Google Analytics debugger to detect the problem but it looks fine

  • Link Analytics and Search Console -> RESOLVED
  • Bad Default URL -> RESOLVED

    Google Analytics Debug

This is the output of any event click on my app. I also try to replace reywood/meteor-iron-router-ga with simple JavaScript Analytics.js but still no benefit.

ga('send', 'event', {
            eventCategory: Category,
            eventAction: Action,
            eventLabel: Label
        });

settings.json

"ga": {
        "id": "UA-75464623-1",
        "create": {
            "cookieDomain": "dev.goodatlas.com",
            "cookieName": "my_ga_cookie",
            "cookieExpires": 3600
        }
    }

Cordova Settings for mobile in mobile-config.js

App.accessRule('*.google-analytics.com/*');

Even on Google Tag Assistant it shows me the data but no display on Google Analytics Real Time or on event Behavior enter image description here
Can any body tell me what i am doing wrong here.....

I already spent too much time on this

1条回答
够拽才男人
2楼-- · 2019-04-03 00:30

I am also having the same issue. When I run the app I can see the realtime tracking, but when I build the app and then run it doesn't work.

As per the package we need to provide public settings of Google Analytics in settings.json file. I've solved it by passing the --mobile-settings settings.json while building the app and it works.

查看更多
登录 后发表回答