-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom dimensions of any size (custom_dimension_X fields of unlimited length column (TEXT type) instead of VARCHAR 255) #16150
Comments
Yes would definitely not making this the default. And would also possibly trim after 255 characters to avoid errors and rather not fully tracking it instead of failing. |
Maybe the columns could be to TEXT type in the Custom Dimensions release for Piwik 4.0.0 in the future. |
Not sure. Personally would keep things the way they are maybe. Eg |
Btw before closing we should also update the link in the page: https://matomo.org/docs/data-limits/ |
Is there any update on this issue? Is this change going to be included in Matomo 4? |
It's not included in Matomo 4 but you can change the type manually in your database if needed. |
@tsteur Is there already an FAQ entry for this? Could not find anything until now. Is it just an What happens if a future migration of piwik changes this type back? |
@luflow there isn't. AFAIK it's only an alter table query to change field to ALTER TABLE matomo_log_visit MODIFY COLUMN custom_dimension_1 TEXT, MODIFY COLUMN custom_dimension_2 TEXT, MODIFY COLUMN custom_dimension_3 TEXT, MODIFY COLUMN custom_dimension_4 TEXT, MODIFY COLUMN custom_dimension_5 TEXT; I'm not sure what would happen if we were to change it back. I'm assuming the content would be truncated but the historical archived reporting data would still include the full names. |
I am using matomo 4.6.2 |
@mattab @tsteur could you please help me with this? We have now upgraded to version 4.10.1 and still have this issue. |
Hi @ashutosh-hs we haven't got this on the list of currently prioritised work. You may have a better chance of getting help with this over on our forums https://forum.matomo.org/ |
@justinvelluppillai thanks. |
Hi @ashutosh-hs the custom dimension value is hard coded to 250 characters: https://github.com/matomo-org/matomo/blob/4.11.0-rc1/plugins/CustomDimensions/Tracker/CustomDimensionsRequestProcessor.php#L175 It was added in Matomo 3.1.8 matomo-org/plugin-CustomDimensions@823e8e9#diff-bbc47867ddfd7fe85fe96b6a846a35ca5064315fb8a12ec8615a4ec69adf6fd3R132-R136 meaning the workaround to use TEXT columns doesn't work anymore since that release. |
oh, okay. @tsteur thanks for the confirmation |
Hi @tsteur |
@Sonofendor I may be wrong but I believe event name/action/category are limited to 4000 characters as per the |
@tsteur Thanks for your answer! |
@tsteur as time moves on and data collections are getting bigger, I see a larger demand for this to be happening. |
Hello @tsteur tsteur and the Matomo team, I would like to make a quick plea for the implementation of unlimited text lengths for the custom_dimension_X fields. In our projects, we regularly hit the limits of the current 255 character limit, which prevents us from utilizing the full depth of our data. An extension to the TEXT type would make us much more flexible and improve the quality of our analyses. We hope for a positive development in this matter. |
A customer has an issue with the 255 byte limit. The have faced several problems...
The only solution presently is to:
@tsteur Perhaps this could be solved more easily now. I don't believe the SQL data type needs to change to "TEXT"...
|
Hi, I have a client who requested a fix for this issue, and we are looking to contribute it back to the core. The idea is that the size of a custom dimension should be configurable based on the needs of the implementer of a Matomo installation, while keeping a default limit of 250 characters. Similar to the existing configs:
I would like to introduce a new config option:
This would allow for flexibility in defining the length of custom dimensions, with the default set to 250 characters, but configurable up to 65,535 (the MySQL TEXT field limit). I have submitted a PR for review here: #22582 Looking forward to your feedback! Thanks! |
Currently custom dimension values are limited to 255 characters, but in some cases we want to track more than 255 characters in a custom dimension.
Currently, if trying to issue a request with a dimension value longer than 255 chars, the tracker API request will fail with an error like
When manually changing the column type from VARCHAR 255 to TEXT, then the data is tracked properly, and displayed correct in the reports.
---> For users who need to track more than 255 chars, can we recommend them to manually change the DB schema column type to
TEXT
field? is there any possible problem with this solution?The text was updated successfully, but these errors were encountered: