diff --git a/pluf/src/Pluf/Middleware/GoogleAnalytics.php b/pluf/src/Pluf/Middleware/GoogleAnalytics.php index 0a1a9a7..839f37d 100644 --- a/pluf/src/Pluf/Middleware/GoogleAnalytics.php +++ b/pluf/src/Pluf/Middleware/GoogleAnalytics.php @@ -43,8 +43,8 @@ class Pluf_Middleware_GoogleAnalytics if (!Pluf::f('google_analytics_id', false)) { return $response; } - if (!in_array($response->status_code, - array(200, 201, 202, 203, 204, 205, 206, 404, 501))) { + if (!in_array($response->status_code, + array(200, 201, 202, 203, 204, 205, 206, 404, 501))) { return $response; } $ok = false; @@ -58,14 +58,20 @@ class Pluf_Middleware_GoogleAnalytics if ($ok == false) { return $response; } - $js = ' -'; +EOT; $response->content = str_replace('', $js.'', $response->content); return $response; }