Skip to content

Conversation

@MichaelApproved
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant