Closed (fixed)
Project:
Matomo Analytics
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2020 at 22:44 UTC
Updated:
26 Apr 2022 at 19:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
marco.aresu commentedComment #3
grimreaperHello,
In this case, I am more in favor of removing the site ID validation rather than introducing a new setting to bypass it.
Comment #4
pfrenssenHow can a site ID be anything but an integer? Are you using a modified Matomo instance? According to the Matomo API the site ID is always an integer. Ref. https://developer.matomo.org/api-reference/Piwik/Site#getid and https://developer.matomo.org/api-reference/reporting-api#standard-api-pa...
Comment #5
pfrenssenIn the Matomo database model the site ID is defined as an unsigned integer, ref. https://github.com/matomo-org/matomo/blob/4.x-dev/core/Db/Schema/Mysql.p... - and this has been unchanged since the days when it was still called Piwik, ref. https://gitlab.com/piwik/piwik/-/blob/master/core/Db/Schema/Mysql.php#L75
If you are using a hacked Matomo / Piwik instance which has a modified database scheme, then I would suggest that you implement a
hook_form_alter()to match your customized instance.Comment #6
grimreaperThanks @pfrenssen for the investigations!
Closing.
@marco.aresu, feel free to reopen if you can explain how you have a site ID with other characters than integers.
Comment #7
davide.porrovecchio commentedHello,
if a Matomo instance is using the ProtectTrackID plugin the idsite parameter can be a generic string.
I think this is a valid use case to consider for this issue.
Comment #8
marco.aresu commentedThe Agid Web Analytics Italia use Matomo. The italian agency generate a site ID with alphanumeric values.
Comment #10
grimreaperThanks @davide.porrovecchio for pointing to the Matomo community module.
Now I understand the need.
Please review the created MR.
@pfrenssen: will this have an impact in the Matomo ecosystem modules you maintain?
Comment #12
grimreaper