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.
Thanks.
- Nick
Comments
Comment #1
grendzy CreditAttribution: grendzy commented"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.
Comment #2
grendzy CreditAttribution: grendzy commentedComment #3
grendzy CreditAttribution: grendzy commentedThis 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.Comment #4
raspberryman CreditAttribution: raspberryman commentedFixed in the 7.x-3.x branch with commit 3982dc8: http://drupalcode.org/project/google_analytics_reports.git/commit/3982dc8
Comment #6
grendzy CreditAttribution: grendzy commentedneeds to be ported if / when the 6.x-3.x branch opens.
Comment #7
Plazik CreditAttribution: Plazik as a volunteer commented6.x version is unsupported. Please upgrade to 7.x.