You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several attributes included in our tracking payload, e.g. page title include spaces which need to be encoded before being sent to GA. Currently this is done by
const qs = new URLSearchParams(JSON.parse(JSON.stringify(payload))).toString()
which returns a string where spaces have been replaced with +. Unfortunately GA doesn't decode this before displaying in it's UI, but it does hovewer decode %20 properly.
Is there any way that you switch to using encodeURIComponent to encode the payload in a way which will be decodeable by GA, or alternativelly even enabling a way to provide custom serialization function?
I can create a PR which fixes the encoding issue if that would work for you?
Cheers
The text was updated successfully, but these errors were encountered:
Several attributes included in our tracking payload, e.g. page title include spaces which need to be encoded before being sent to GA. Currently this is done by
which returns a string where spaces have been replaced with
+
. Unfortunately GA doesn't decode this before displaying in it's UI, but it does hovewer decode%20
properly.Is there any way that you switch to using
encodeURIComponent
to encode the payload in a way which will be decodeable by GA, or alternativelly even enabling a way to provide custom serialization function?I can create a PR which fixes the encoding issue if that would work for you?
Cheers
The text was updated successfully, but these errors were encountered: