What is the maximum URL length and how do I track long Page URLs and Page Titles without truncating them?
By default, Matomo will truncate Page URLs and Page Titles after 1024 characters (1 Kb).
If you are tracking Page Titles or Page URLs that are longer than 1024 characters, Matomo will truncate (cut off) the extra characters and remove any additional URL parameters.
To ensure that Matomo correctly tracks long Page URLs and Page Titles, you can edit your config/config.ini.php
and add the following:
[General]
page_maximum_length = 2048
After applying the change, Matomo will track up to 2048 characters in your Page URLs and Page Titles. You can adjust the value appropriately for your use case.
From Matomo 4.0.0, only the first 4096 characters of a Page Title or a Page URL (and all action names) will be stored, even if page_maximum_length
is set to a higher value.
Referrer URLs are generally truncated to 1024 but can be extended to 1500 characters using page_maximum_length
.