Revision [575]

Last edited on 2007-06-17 20:20:18 by KlenwellAdmin
Additions:
**[[AnalyticsEmailComparison Click here]] for a comparison of a Google Analytics email report and a Greqo Analytics email report**
Deletions:
**[[AnalyticsEmailComparison Click here]] for a comparison of normal Google Analytics email report and Greqo Analytics email report**


Revision [569]

Edited on 2007-06-17 19:01:41 by KlenwellAdmin
Additions:
**[[AnalyticsEmailComparison Click here]] for a comparison of normal Google Analytics email report and Greqo Analytics email report**


Revision [568]

Edited on 2007-06-17 18:38:57 by KlenwellAdmin
Additions:
$summary = $GreqoAnalytics->get_site_summary($start_uts, $stop_uts);
Deletions:
$summary = $GreqoAnalytics->get_site_summary($start_uts, $stop_uts, $pid);


Revision [567]

Edited on 2007-06-17 18:37:13 by KlenwellAdmin
Additions:
====Overview====
$start_uts = time() - $GreqoAnalytics->day_sec;
$stop_uts = $start_uts;
$summary = $GreqoAnalytics->get_site_summary($start_uts, $stop_uts, $pid);
echo "
$summary
";
$summary output from above
Greqo Analytics Summary for Phosphorus and Lime (blog)
DATES: June 16, 2007 - June 16, 2007
VISITORS: 13 (Previous: 28 / -53.57%)
PAGE VIEWS: 13 (Previous: 33 / -60.61%)
UNIQUE VISITORS: 13 (Previous: 27 / -51.85%)
SOURCES
source/medium : visits | pg/v | time (s)
1. google / organic : 13 | 1.0 | 0
KEYWORDS
keywords : visits
1. myspace table font color css : 1
2. myspace masthead : 1
3. unable to sign on to blogger : 1
4. myspace/samy : 1
5. myspace stylesheet : 1
6. nifty cube body transparent : 1
7. tiny myspace profile style sheet : 1
8. class 'html_template_flexy' not found in : 1
9. myspace wrapper table width : 1
10. phpmailer gmail : 1
CONTENT
page (url) : views | unique | time (s)
1. /2005/10/css-latest-myspace-profile-stylesheet.html : 4 | 4 | 0
2. /2006/08/css-myspace-civilized.html : 3 | 3 | 0
3. /2005/12/php-mvc-demo.html : 1 | 1 | 0
4. /2007/05/phpmailer-with-gmail.html : 1 | 1 | 0
5. / : 1 | 1 | 0
6. /2006/01/php-mysql-statements-in-heredocs.html : 1 | 1 | 0
7. /2005/10/myspace-samy-worm.html : 1 | 1 | 0
8. /2006_01_01_archive.html : 1 | 1 | 0
Deletions:
$start_uts = time() - ( 3 * $GreqoAnalytics->day_sec );
$stop_uts = time() - ( 2 * $GreqoAnalytics->day_sec );
$REPORT_SUMMARY = $GreqoAnalytics->get_site_summary($start_uts, $stop_uts, $site_id=0);
$output = print_r($REPORT_SUMMARY, 1);
echo "
$output
";
a dump of the $REPORT_SUMMARY array above
Array
(
[META] => Array
(
[profile_name] => Phosphorus and Lime (blog)
[site_id] => 1264425
[date_range] => June 10, 2007 - June 11, 2007
[date_range_ymd] => 20070610 - 20070611
[report_date] => 2007-06-12 20:02:50
[uts] => 1181703770
)
[VISITORS] => Array
(
[greqo_id] => visitors
[report_name] => Visitors Overview
[cache_id] => ga_1264425VisitorsOverviewReport12007061020070611
[visits] => 49
[unique_visits] => 46
[pageviews] => 54
[pageview_per_visit] => 1.10
[bounce_rate] => 91.84%
[new_visits] => 91.84%
[time_per_visit] => 00:00:29
)
[SOURCES] => Array
(
[greqo_id] => sources
[report_name] => All Traffic Sources
[cache_id] => ga_1264425AllSourcesReport22007061020070611
[num_cols] => 10
[num_records] => 6
[RECORDS] => Array
(
[0] => Array
(
[Source/Medium] => google / organic
[Visits] => 35
[Pages/Visit] => 1.1428572
[Avg. Time on Site] => 40
[% New Visits] => 0.8857142925262451
[Bounce Rate] => 0.8857142925262451
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[1] => Array
(
[Source/Medium] => (direct) / (none)
[Visits] => 8
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[2] => Array
(
[Source/Medium] => myspacecivilized.blogspot.com / referral
[Visits] => 3
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[3] => Array
(
[Source/Medium] => coding.derkeiler.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[4] => Array
(
[Source/Medium] => code.google.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[5] => Array
(
[Source/Medium] => images.google.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
)
)
[KEYWORDS] => Array
(
[greqo_id] => keywords
[report_name] => Keywords
[cache_id] => ga_1264425KeywordsReport22007061020070611
[num_cols] => 10
[num_records] => 10
[RECORDS] => Array
(
[0] => Array
(
[Keyword] => phpmailer gmail
[Visits] => 5
[Pages/Visit] => 1.6
[Avg. Time on Site] => 108
[% New Visits] => 0.800000011920929
[Bounce Rate] => 0.6000000238418579
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[1] => Array
(
[Keyword] => masthead on myspace
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[2] => Array
(
[Keyword] => secure login class with database in php
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[3] => Array
(
[Keyword] => php array_search
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[4] => Array
(
[Keyword] => century gothic for mac css
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[5] => Array
(
[Keyword] => gmail phpmailer
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[6] => Array
(
[Keyword] => div css myspace
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[7] => Array
(
[Keyword] => css line-wrap
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[8] => Array
(
[Keyword] => blogspot item
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[9] => Array
(
[Keyword] => array_search php
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
)
)
[CONTENT] => Array
(
[greqo_id] => content
[report_name] => Top Content
[cache_id] => ga_1264425TopContentReport22007061020070611
[num_cols] => 7
[num_records] => 10
[RECORDS] => Array
(
[0] => Array
(
[URL] => /2007/05/phpmailer-with-gmail.html
[Pageviews] => 11
[Unique Pageviews] => 8
[Time on Page] => 180
[Bounce Rate] => 0.75
[% Exit] => 0.7272727489471436
[$ Index] => 0.0
)
[1] => Array
(
[URL] => /2007/06/sharepoint-markup.html
[Pageviews] => 6
[Unique Pageviews] => 6
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[2] => Array
(
[URL] => /2005/11/css-window-mac-font-families.html
[Pageviews] => 5
[Unique Pageviews] => 5
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[3] => Array
(
[URL] => /2006/08/css-myspace-civilized.html
[Pageviews] => 4
[Unique Pageviews] => 4
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[4] => Array
(
[URL] => /2005/11/php-arraysearch.html
[Pageviews] => 4
[Unique Pageviews] => 4
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[5] => Array
(
[URL] => /2006/08/css-referencequotation-styles-updated.html
[Pageviews] => 3
[Unique Pageviews] => 2
[Time on Page] => 821
[Bounce Rate] => 0.5
[% Exit] => 0.6666666865348816
[$ Index] => 0.0
)
[6] => Array
(
[URL] => /
[Pageviews] => 3
[Unique Pageviews] => 3
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[7] => Array
(
[URL] => /2006_08_01_archive.html
[Pageviews] => 3
[Unique Pageviews] => 3
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[8] => Array
(
[URL] => /2005/11/css-line-wrap.html
[Pageviews] => 2
[Unique Pageviews] => 2
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[9] => Array
(
[URL] => /2006_01_01_archive.html
[Pageviews] => 2
[Unique Pageviews] => 2
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
)
)
)


Revision [566]

Edited on 2007-06-17 18:33:54 by KlenwellAdmin
Additions:
**note: This class has been successfully tested. However, it has not been extensively tested. If you encounter any bugs, please either [[http://code.google.com/p/greqo/issues/list report them here]] or [[mailto:klenwell@gmail.com contact me]]**
Deletions:
**note: this class is still under development and unstable. you are welcome to try it, but don't be surprised to encounter a bug or two.**


Revision [556]

Edited on 2007-06-12 22:05:09 by KlenwellAdmin
Additions:
====Sample Output====
a dump of the $REPORT_SUMMARY array above
Array
(
[META] => Array
(
[profile_name] => Phosphorus and Lime (blog)
[site_id] => 1264425
[date_range] => June 10, 2007 - June 11, 2007
[date_range_ymd] => 20070610 - 20070611
[report_date] => 2007-06-12 20:02:50
[uts] => 1181703770
)
[VISITORS] => Array
(
[greqo_id] => visitors
[report_name] => Visitors Overview
[cache_id] => ga_1264425VisitorsOverviewReport12007061020070611
[visits] => 49
[unique_visits] => 46
[pageviews] => 54
[pageview_per_visit] => 1.10
[bounce_rate] => 91.84%
[new_visits] => 91.84%
[time_per_visit] => 00:00:29
)
[SOURCES] => Array
(
[greqo_id] => sources
[report_name] => All Traffic Sources
[cache_id] => ga_1264425AllSourcesReport22007061020070611
[num_cols] => 10
[num_records] => 6
[RECORDS] => Array
(
[0] => Array
(
[Source/Medium] => google / organic
[Visits] => 35
[Pages/Visit] => 1.1428572
[Avg. Time on Site] => 40
[% New Visits] => 0.8857142925262451
[Bounce Rate] => 0.8857142925262451
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[1] => Array
(
[Source/Medium] => (direct) / (none)
[Visits] => 8
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[2] => Array
(
[Source/Medium] => myspacecivilized.blogspot.com / referral
[Visits] => 3
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[3] => Array
(
[Source/Medium] => coding.derkeiler.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[4] => Array
(
[Source/Medium] => code.google.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[5] => Array
(
[Source/Medium] => images.google.com / referral
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
)
)
[KEYWORDS] => Array
(
[greqo_id] => keywords
[report_name] => Keywords
[cache_id] => ga_1264425KeywordsReport22007061020070611
[num_cols] => 10
[num_records] => 10
[RECORDS] => Array
(
[0] => Array
(
[Keyword] => phpmailer gmail
[Visits] => 5
[Pages/Visit] => 1.6
[Avg. Time on Site] => 108
[% New Visits] => 0.800000011920929
[Bounce Rate] => 0.6000000238418579
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[1] => Array
(
[Keyword] => masthead on myspace
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[2] => Array
(
[Keyword] => secure login class with database in php
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[3] => Array
(
[Keyword] => php array_search
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[4] => Array
(
[Keyword] => century gothic for mac css
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[5] => Array
(
[Keyword] => gmail phpmailer
[Visits] => 2
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 0.5
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[6] => Array
(
[Keyword] => div css myspace
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[7] => Array
(
[Keyword] => css line-wrap
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[8] => Array
(
[Keyword] => blogspot item
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
[9] => Array
(
[Keyword] => array_search php
[Visits] => 1
[Pages/Visit] => 1.0
[Avg. Time on Site] => 0
[% New Visits] => 1.0
[Bounce Rate] => 1.0
[G1] => 0.0
[Conversion Rate] => 0.0
[Per Visit Goal Value] => 0.0
)
)
)
[CONTENT] => Array
(
[greqo_id] => content
[report_name] => Top Content
[cache_id] => ga_1264425TopContentReport22007061020070611
[num_cols] => 7
[num_records] => 10
[RECORDS] => Array
(
[0] => Array
(
[URL] => /2007/05/phpmailer-with-gmail.html
[Pageviews] => 11
[Unique Pageviews] => 8
[Time on Page] => 180
[Bounce Rate] => 0.75
[% Exit] => 0.7272727489471436
[$ Index] => 0.0
)
[1] => Array
(
[URL] => /2007/06/sharepoint-markup.html
[Pageviews] => 6
[Unique Pageviews] => 6
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[2] => Array
(
[URL] => /2005/11/css-window-mac-font-families.html
[Pageviews] => 5
[Unique Pageviews] => 5
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[3] => Array
(
[URL] => /2006/08/css-myspace-civilized.html
[Pageviews] => 4
[Unique Pageviews] => 4
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[4] => Array
(
[URL] => /2005/11/php-arraysearch.html
[Pageviews] => 4
[Unique Pageviews] => 4
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[5] => Array
(
[URL] => /2006/08/css-referencequotation-styles-updated.html
[Pageviews] => 3
[Unique Pageviews] => 2
[Time on Page] => 821
[Bounce Rate] => 0.5
[% Exit] => 0.6666666865348816
[$ Index] => 0.0
)
[6] => Array
(
[URL] => /
[Pageviews] => 3
[Unique Pageviews] => 3
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[7] => Array
(
[URL] => /2006_08_01_archive.html
[Pageviews] => 3
[Unique Pageviews] => 3
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[8] => Array
(
[URL] => /2005/11/css-line-wrap.html
[Pageviews] => 2
[Unique Pageviews] => 2
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
[9] => Array
(
[URL] => /2006_01_01_archive.html
[Pageviews] => 2
[Unique Pageviews] => 2
[Time on Page] => 0
[Bounce Rate] => 1.0
[% Exit] => 1.0
[$ Index] => 0.0
)
)
)
)


Revision [552]

Edited on 2007-06-11 00:34:49 by KlenwellAdmin
Additions:
----
CategoryGreqo


Revision [551]

Edited on 2007-06-11 00:34:22 by KlenwellAdmin
Additions:
**note: this class is still under development and unstable. you are welcome to try it, but don't be surprised to encounter a bug or two.**
====Usage====
%%(php)
require_once('../analytics.class.php');
$GreqoAnalytics = new GreqoAnalytics($debug=1);
$GreqoAnalytics->email = 'user@gmail.com';
$GreqoAnalytics->password = 'password';
$GreqoAnalytics->site_id = '0000001'; /* if not sure, login and right click link on overview -- it should be embedded there */
// get report
$start_uts = time() - ( 3 * $GreqoAnalytics->day_sec );
$stop_uts = time() - ( 2 * $GreqoAnalytics->day_sec );
$REPORT_SUMMARY = $GreqoAnalytics->get_site_summary($start_uts, $stop_uts, $site_id=0);
$output = print_r($REPORT_SUMMARY, 1);
echo "
$output
";
%%
[[http://greqo.googlecode.com/svn/trunk/analytics.class.php Source Code]]


Revision [550]

The oldest known version of this page was created on 2007-06-11 00:30:30 by KlenwellAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki