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
Proposed Solution:
File: matomo\core\Tracker\Request.php
Added the following line to lower incoming request query keys before set this->params $params=array_change_key_case($params, CASE_LOWER);
Complete Code:
publicfunction __construct($params, $tokenAuth = false)
{
if (!is_array($params)) {
$params = array();
}
$params=array_change_key_case($params, CASE_LOWER);
/**....same old code....**/
tsteur
added
the
duplicate
For issues that already existed in our issue tracker and were reported previously.
label
May 1, 2019
Hi there, the proposed solution could break a lot of things. In general, the last time this was suggested it was closed because urls are usually not case insensitive see #10534
You would implement this in the client you use. For example if you use JS, and want pageviews to be case insensitive, you could do something like _paq.push(['setCustomUrl', location.href.toLowerCase()]). Similar things probably work in the dot net tracker.
Issue:
When posting a download action with query parameter Downalod (capital D), it is tracked as a page view instead of download action.
Excepted:
All query parameter keys should be case insensitive to avoid similar issues.
Generate Steps:
Url with Downalod (capital D) is logged as a page view without title
http://localhost/piwik.php?idsite=1&rec=1&apiv=1&r=061746&_idts=1556711817&_idvc=0&_id=0dcabb7d69b1aa23&url=http%3a%2f%2flocalhost%2fpiwik.org%2fpath%2fagain%2flatest.zip&Download=http%3a%2f%2flocalhost%2fpiwik.org%2fpath%2fagain%2flatest.zip
Url with download is logged as a download action
http://localhost/piwik.php?idsite=1&rec=1&apiv=1&r=061746&_idts=1556711817&_idvc=0&_id=0dcabb7d69b1aa23&url=http%3a%2f%2flocalhost%2fpiwik.org%2fpath%2fagain%2flatest.zip&download=http%3a%2f%2flocalhost%2fpiwik.org%2fpath%2fagain%2flatest.zip
Related Issue (Matomo .Net Client):
matomo-org/piwik-dotnet-tracker#68
The text was updated successfully, but these errors were encountered: