diff -r 25fed767e5df57cb51c3a231bb440398db170c35 -r 13ec43cec79774164afaf7205165d0113de6d338 pluf/src/Pluf/Middleware/GoogleAnalytics.php
--- a/pluf/src/Pluf/Middleware/GoogleAnalytics.php Sun Mar 09 23:10:52 2014 -0500
+++ b/pluf/src/Pluf/Middleware/GoogleAnalytics.php Mon Mar 10 22:34:32 2014 -0500
@@ -43,8 +43,8 @@
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 @@
if ($ok == false) {
return $response;
}
- $js = '
-';
+EOT;
$response->content = str_replace('