server-side-google-analytics icon indicating copy to clipboard operation
server-side-google-analytics copied to clipboard

http_build_query incorrectly encodes spaces

Open MichaelApproved opened this issue 9 years ago • 0 comments

The http_build_query will encode a space as a plus sign. This should be encoded as %20, instead of "+". Encoding as a + will cause Google Analytics to display it as a plus sign.

By manually building the query string, we can use rawurlencode to do proper encoding of spaces.

MichaelApproved avatar Sep 11 '15 08:09 MichaelApproved