okgrow / analytics

UNMAINTAINED! - Complete Google Analytics, Mixpanel, KISSmetrics (and more) integration for Meteor
https://atmospherejs.com/okgrow/analytics
MIT License
213 stars 61 forks source link

Basic Google Analytics setup does not seem to work #192

Closed drone1 closed 7 years ago

drone1 commented 7 years ago

Hello.

I installed with:

meteor add okgrow:analytics

My settings-prod.json looks like this:

"public": {
    ...

    "analyticsSettings": {
        "Google Analytics" : { "trackingId": "UA-xxxxxxxx-1" }
    }
}

Console on prod shows events being fired off, e.g.:

analytics:integration:google-analytics page with Array(1) 4ms

But on the GA realtime page, I can't get my test session to show up. It just says "0", and no data appears to have been collected (realtime and elsewhere).

I've verified that my tracking ID is correct, and I copy/pasted the rest of the settings JSON directly from the example.

I definitely deployed with the expected settings.

No ad blocker running.

Did I miss a step?

Thanks a lot!

cfnelson commented 7 years ago

@drone1 Have you been able to resolve your issue? From what you have stated you have done it should be working. The fact that you have it logging page views with analytics.debug() means that the analytics package is working and tracking your page changes.

If I had to guess it is most likely something wrong with your setup on the Google Analytics side of things.

drone1 commented 7 years ago

Like what though? The GA side simply requires that you use the correct tracking ID and your package takes care of the rest, no? On Mon, Oct 2, 2017 at 2:48 PM Charles Nelson notifications@github.com wrote:

@drone1 https://github.com/drone1 Have you been able to resolve your issue? From what you have stated you have done it should be working. The fact that you have it logging page views with analytics.debug() means that the analytics package is working and tracking your page changes.

If I had to guess it is most likely something wrong with your setup on the Google Analytics side of things.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/okgrow/analytics/issues/192#issuecomment-333674998, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCCPExhuc5_Pex9BZkCQ-7u5oXUrHEjks5soVoTgaJpZM4Ppffn .

cfnelson commented 7 years ago

@drone1 I would have to see the setup myself to give any insight. If you are seeing analytics:integration:google-analytics page with Array(1) 4ms then GA has been intialised and is reporting the events. The only thought I can think of atm is if you are testing locally and have setup GA to ignore events from localhost. You could also try running one of the examples and seeing if it works. Otherwise you could create a new Tracking Id and test again with that one.

drone1 commented 7 years ago

Giving it a bit of time seemed to fix the issue, by the way. After a day or so, data started showing up.

Thanks for your time.

RichardLitt commented 7 years ago

@drone1 Really glad to hear that! It might be worth adding a line to the README about this, for others. Would you be interested in helping PR that?

drone1 commented 7 years ago

Yeah, will do that. Good call. On Mon, Oct 9, 2017 at 5:12 PM Richard Littauer notifications@github.com wrote:

@drone1 https://github.com/drone1 Really glad to hear that! It might be worth adding a line to the README about this, for others. Would you be interested in helping PR that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/okgrow/analytics/issues/192#issuecomment-335322781, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCCPBj76kaXgf0RNqRs0PJ0CVZ4PO85ks5sqrZqgaJpZM4Ppffn .