Im having a problem where only the site admin can see the analytics block and the stats page, also as admin i don't see where i am able to access the admin/google-analytics/report page, as no link shows up for this, nor am i able to see the permission setting for 'access Google Analytics reports'.

Am i missing something? Any help greatly appreciated.

Cheers

CommentFileSizeAuthor
#8 ga_api_reports_permission_bug.patch674 byteshass

Comments

bls20’s picture

no one can shed any light?

rfarm’s picture

I haven't tried to enable block am simply trying to use the report at admin/google-analytics/report. When logged in as admin I can view the report and it works however I do not have 'access Google Analytics reports' showing up in Permissions so am unable to grant permission to another user to view report.

I can see the hook_perm in google_analytics_reports.module but it is not working for some reason.

I'm missing something here but can't seem to find the problem.

Any clue how to fix this?

Thanks!

rfarm’s picture

duplicated my own comment, sorry

bls20’s picture

rfarm, yup exactly the same problem, and i still haven't figured it out, please let me know if you make and headway.

Cheers.

bls20’s picture

Am i missing something here, my authenticated users can't see the analytics data for their own nodes, is this a bug or normal functionality?

collin_ph’s picture

There is a BUG in this program in google_analytics_reports.module

line 41
should change from
function google_analytics_reports_api_perm() {

to
function google_analytics_reports_perm() {

If I knew how to submit a patch request I would.

If you change this line, you'll get a new permission called "access Google Analytics reports" that you can grant.

rfarm’s picture

Thanks, collin_ph!

hass’s picture

Status: Active » Needs review
StatusFileSize
new674 bytes

#6 sounds like this bug, untested patch attached.

karens’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

This is a no-brainer. Permissions won't work without this. The good news is that the 'broken' part is not that people without permissions are seeing it, it's that only User #1 can see it.

jkitching’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Fixed bug 651960, also solving this issue.