Just curious if anyone knows why the path is set to "index.html" when it's equal to "/". See line 30 of google_analytics_reports.blocks.inc for details.

This causes the reports to show zero hits for the home page on my site since the path that Google Analytics has recorded for the home page is indeed "/". I would think that others are running into this as well but couldn't find any record of it in the project's issues. Am I just missing something obvious here?

I've commented out this test that starts on line 30 and can confirm that the reports block renders accurate data for the home page.

- Nick


grendzy’s picture

"index.html" is the standard "default page", and so "/" gets reported that way.
It appears this value can be changed though: https://www.google.com/support/googleanalytics/bin/answer.py?answer=3299...

We should see if there's an API function to load the value of this setting. Otherwise I guess we have to ask the Drupal site administrator for it, which I'm sure would confuse people.

grendzy’s picture

Category: support » bug
grendzy’s picture

Title: Why default to index.html if path = "/" in google_analytics_reports.blocks.inc? » pull defaultPage from management API, instead of assuming index.html
Version: 6.x-1.0 » 7.x-1.x-dev
Status: Active » Postponed

This is on hold until #1380748: Upgrade to Core Reporting API v3.0 / OAuth 2.0.

The configuration value we need, defaultPage, is only available in the newer API.

raspberryman’s picture

Assigned: Unassigned » raspberryman
Status: Postponed » Fixed

Fixed in the 7.x-3.x branch with commit 3982dc8: http://drupalcode.org/project/google_analytics_reports.git/commit/3982dc8

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

grendzy’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Component: Code » Reports module
Status: Closed (fixed) » Patch (to be ported)

needs to be ported if / when the 6.x-3.x branch opens.

Plazik’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (won't fix)

6.x version is unsupported. Please upgrade to 7.x.