|
|
While working on my own stuff, I found that Google Analytics exports
different data depending on which tab you have opened. For example, when in
the Google AdWords area, you get different data when you export from the
first tab then when exporting from the last tab. The latter (Clicks) has
the Google AdWords costs in it, the former doesn't.
Now, clicking on one of the tabs doesn't change the URL, but with
experimenting a bit (also called "poking in the dark"), I found that you
CAN access different tabs by simply adding "&tab=" in the URL.
I made a small change in your Analytics class for this:
function request_report_from_google($site_id, $rpt, $pdr1=0, $pdr2=0,
$fmt=0, $cmp=0, $tab=0)
{
[snip]
$url_query =
"fmt={$fmt}&id={$site_id}&pdr={$pdr1}-{$pdr2}&cmp={$cmp}{$trow}&rpt={$rpt}&tab={$tab}";
[snip more]
}
This way, you can access the different tabs in Google Analytics with your
tool, thus getting all the data you could actually get from exporting manually.
I hope this helps - I'd be happy to see this included in a future Greqo
version.
Heiner de Wendt
|