Permalink
Browse files

Inject Googalytics script into end of body

  • Loading branch information...
1 parent 3ab7cde commit bcbfbb02dab8f78e8a8c31eb7a8464fd39aa7b9f @craiga committed Mar 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 controller.php
View
@@ -162,7 +162,7 @@ function exception_error_handler($errno, $errstr, $errfile, $errline)
{
$googleAnalyticsTemplate = new Template("templates/google-analytics.template");
$googleAnalyticsTemplate->setVar("google-analytics-account", Config::Get("google-analytics-account"));
- $responseFilters[] = new HeaderTemplateInjectionResponseFilter($googleAnalyticsTemplate);
+ $responseFilters[] = new FooterTemplateInjectionResponseFilter($googleAnalyticsTemplate);
}
catch(ConfigNotSetException $e)
{
@@ -196,4 +196,4 @@ function exception_error_handler($errno, $errstr, $errfile, $errline)
printf("An unhandled %s occurred.\n\n%s\n\n", get_class($e), $e->getMessage());
printf("%s (%d)\n", $e->getFile(), $e->getLine());
printf($e->getTraceAsString());
-}
+}

0 comments on commit bcbfbb0

Please sign in to comment.