diff --git a/mysite/_config.php b/mysite/_config.php index 0e21ecf..71b2f11 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -49,3 +49,8 @@ try{ // We want this to be reviewed by the whole community BasicAuth::protect_entire_site(false); + +Object::add_extension('DocumentationViewer', 'DocumentationViewerExtension'); +if(Director::isLive()) { + DocumentationViewerExtension::$google_analytics_code = 'UA-84547-8'; +} \ No newline at end of file diff --git a/themes/docs/templates/DocumentationViewer.ss b/themes/docs/templates/DocumentationViewer.ss index e1fa445..e9d9e87 100644 --- a/themes/docs/templates/DocumentationViewer.ss +++ b/themes/docs/templates/DocumentationViewer.ss @@ -82,5 +82,21 @@
Documentation powered by SilverStripe. Contribute to the Documentation Project.
Except where otherwise noted, content on this wiki is licensed under CC Attribution-Noncommercial-Share Alike 3.0 Unported