Changed to PHP and updated GA code