piwik.js double encodes the url and referrer when they are detected automatically · Issue #7220 · matomo-org/matomo · GitHub
Skip to content

piwik.js double encodes the url and referrer when they are detected automatically #7220

Closed
@tsteur

Description

location.href and top.document.referer seem to be already URL encoded. At least in the browsers we tested. When tracking, we do encode them again meaning they are double url encoded which is wrong. Even worse some browsers use uppercase and some browsers use lowercase for the url encoding meaning we store 2 actions for the same URL. See #7209 . It also causes that it is not possible to segment for those URLs see #7218

Solution should be most likely to always url-decode the url and referrer before url-encoding them again (which is done when the request is sent)

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions