From 43489e48b99aa4171e1770362b13441b4a1d02c6 Mon Sep 17 00:00:00 2001 From: Uri Ezra Date: Thu, 7 Aug 2014 14:44:34 +0300 Subject: [PATCH] Add spaces for ga slot append When there are more than two tests in the page, the append function for the different ga slots removes the `;` between them. Added spaces to avoid this bug form happening. --- phpab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpab.php b/phpab.php index 5e0075f..4802bc1 100644 --- a/phpab.php +++ b/phpab.php @@ -120,7 +120,7 @@ private function setup_ga () } elseif($auto_fail === FALSE && $async !== FALSE) { - $this->content = substr($this->content, 0, $async - 1) . '_gaq.push(["_setCustomVar", ' . $this->ga_slot . ', "' . $this->test_name . '", "' . $this->current_variation . '", 3]);' . substr($this->content, $async); + $this->content = substr($this->content, 0, $async - 1) . ' _gaq.push(["_setCustomVar", ' . $this->ga_slot . ', "' . $this->test_name . '", "' . $this->current_variation . '", 3]); ' . substr($this->content, $async); } } }