server-side-google-analytics
server-side-google-analytics copied to clipboard
http_build_query incorrectly encodes spaces
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.