-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENHANCEMENT: get performance for the entire site, not only per page, …
…APICHANGE: move getgoogleconfig to googleconfig, ENHANCEMENT: add google report
- Loading branch information
Andreas Piening
committed
Nov 10, 2010
1 parent
5a60448
commit cd399cd
Showing
7 changed files
with
84 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
<?php | ||
|
||
GoogleLogger::activate('SiteConfig'); | ||
GoogleAnalyzer::activate('SiteConfig'); | ||
|
||
// SS_Report::register("ReportAdmin", "AnalyticsReport"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
class GoogleReport extends SS_Report { | ||
|
||
function title() { | ||
return "Google Analytics"; | ||
} | ||
|
||
function description() { | ||
return "add description"; | ||
} | ||
|
||
function getCMSFields() { | ||
$fields = new FieldSet(); | ||
|
||
$chart = new GooglePerformanceChart(); | ||
|
||
$fields->push(new LiteralField('ReportTitle', "<h3>{$this->title()}</h3>")); | ||
$fields->push(new LiteralField('ReportDescription', $chart->renderWith('GooglePerformanceChart'))); | ||
|
||
return $fields; | ||
} | ||
} |