0

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

Zaid Iqbal
  • 1,662
  • 5
  • 25
  • 45
  • I noticed that you are setting cookie domain, but at the same time the location is `localhost`. Might be something to check out. – nyuen May 02 '16 at 13:29
  • @nyuen Image updated ... getting the same issue with live website as well 'dev.goodatlas.com' – Zaid Iqbal May 03 '16 at 04:06

1 Answers1

1

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.

Kevin Adesara
  • 3,830
  • 1
  • 17
  • 18