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
I'm testing out @minimal-analytics/ga4 on KaiOS apps but I'm running into an issue with because package apps are served with an origin like app://myapp.com/. The document location includes the app: protocol, and Google Analytics appears to discard the page path (but not page title) as a result. In Universal Analytics, I replaced the app: protocol with https: and it worked well.
Looking at getQueryParams, the event parameters are concatenated with the default parameters. If I pass { dl: 'https://myapp.com/index.html' }, it sends two dl parameters because of the behavior of URLSearchParams.
Would you consider changing the behavior to allow overriding default parameter values? This should be a non-breaking change, since anyone attempting to override default parameters now would have a bad request anyway.
The text was updated successfully, but these errors were encountered:
I'm testing out
@minimal-analytics/ga4
on KaiOS apps but I'm running into an issue with because package apps are served with an origin likeapp://myapp.com/
. The document location includes theapp:
protocol, and Google Analytics appears to discard the page path (but not page title) as a result. In Universal Analytics, I replaced theapp:
protocol withhttps:
and it worked well.Looking at
getQueryParams
, the event parameters are concatenated with the default parameters. If I pass{ dl: 'https://myapp.com/index.html' }
, it sends twodl
parameters because of the behavior ofURLSearchParams
.Would you consider changing the behavior to allow overriding default parameter values? This should be a non-breaking change, since anyone attempting to override default parameters now would have a bad request anyway.
The text was updated successfully, but these errors were encountered: