Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Google Analytics setup does not seem to work #192

Closed
drone1 opened this issue Sep 30, 2017 · 6 comments
Closed

Basic Google Analytics setup does not seem to work #192

drone1 opened this issue Sep 30, 2017 · 6 comments
Labels

Comments

@drone1
Copy link
Contributor

drone1 commented Sep 30, 2017

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
Copy link
Contributor

cfnelson commented Oct 2, 2017

@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
Copy link
Contributor Author

drone1 commented Oct 3, 2017 via email

@cfnelson
Copy link
Contributor

cfnelson commented Oct 3, 2017

@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
Copy link
Contributor Author

drone1 commented Oct 10, 2017

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.

@drone1 drone1 closed this as completed Oct 10, 2017
@RichardLitt
Copy link
Contributor

@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
Copy link
Contributor Author

drone1 commented Oct 10, 2017 via email

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants