Skip to content

Commit

Permalink
Add spaces for ga slot append
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BadGoat committed Aug 7, 2014
1 parent 11c582f commit 43489e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpab.php
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 43489e4

Please sign in to comment.