I've installed the module, synced it with my GA account, and created a view for content. I've added ALL the statistics fields, just to be sure, and ALL are showing 0. The site has been live for 3 days, and since GA shows activity, I don't understand why this is happening. Have I missed a step in setup? Help!

CommentFileSizeAuthor
#7 ga_stats-2298737-7.patch3.95 KBdysproseum

Comments

vagelis-prokopiou’s picture

I have exactly the same issue. I tried both the 7.x-1.0-beta2 and the 7.x-1.x-dev version of the module. I also tried with different versions of the google analytics module. Nothing worked. All the fields show 0 for me too, although the ga account is up and running and showing multiple values and statistics. All the clues I have is that when I try to manually update the counts, I get the messages that

Counts Successfully Updated

and

Failed to retrieve data from Google Analytics.

Isn't that strange?
I have authenticated with a specific app password, since I am using 2 factor authentication for my google account. The module has authenticated alright and connected to my ga account.
Thanx in advance for any help to all the contributors.

sjvellenga’s picture

For those that were interested in this issue, I ended up going with Piwik analytics and integrating it with Drupal. It does offer quite a lot, and there are a few modules that integrate quite well.

vagelis-prokopiou’s picture

Thanx for the info sjvellenga. I tried it too and works like a charm. Plus, it is open source which I prefer over google analytics.

cthshabel’s picture

Well, I am experiencing identical problems and I'm wondering how I can get this resolved. I would really like to stick with google analytics.

Does there need to be specific permissions set for nginx configuration to allow google to pass the metrics? Any insight on this issue would be very helpful. I have three different environments running this module and all of them have the same problem (Failed to retrieve data from Google Analytics), but the Authentication passes and the correct account is showing.

vagelis-prokopiou’s picture

Another alternative is "Google Analytics Counter". I use it and it works fine.

nimbfire@gmail.com’s picture

I'm facing the same problem...
The connection with the Google Analytics works, because in the values are in the table ga_stats_count the way theyt where supposed to (by month and week).

But in the views, when I filter (or print the page views), the values are all zero.

Someone have an idea of what I may be doing wrong?

Edit: I found out what was wrong. The update couldn't finish, breaking in the middle. So the table was with correct results, but not for the nodes that I was looking for. Ended being a error with the number of characters in one of the columns (url). Changing this resolved the issue. But since it can happen with others, I created a issue https://www.drupal.org/node/2429093 .
Hope this helps someone. =)

dysproseum’s picture

StatusFileSize
new3.95 KB

I also encountered this issue after getting OAuth working using the first patch and the steps in this comment https://www.drupal.org/node/2498117#comment-10003057

I found that the views fields and filters added by the module were not returning any data.

I rewrote them in a different manner, making three different fields available (count, timeframe, and metric) instead of combining them all into one.

To retrieve data from the timeframe "forever" and the metric "pageviews" you can add a filter for each of those settings to the view. Make sure those settings have first been enabled under "admin/config/system/ga_stats" because only enabled values will be available.

dysproseum’s picture

Category: Support request » Feature request
Status: Active » Needs review