diff --git a/ss-ga.class.php b/ss-ga.class.php index 8633e93..f461919 100644 --- a/ss-ga.class.php +++ b/ss-ga.class.php @@ -64,13 +64,13 @@ public function __construct( $UA = null, $domain = null ) { * @return string */ public function create_gif() { - $data = array(); + $query = ''; foreach ( $this->data as $key => $item ) { if ( $item !== null ) { - $data[$key] = $item; + $query .= rawurlencode($key) . "=" . rawurlencode($item) . '&'; } } - return $this->tracking = self::GA_URL . '?' . http_build_query( $data ); + return $this->tracking = self::GA_URL . '?' . $query; } /**