fix https://github.com/matomo-org/matomo/issues/16810
Avoids running into row size exceeded in some cases.
Please include a description of this change and which issue it fixes. If no issue exists yet please include context and what problem it solves.
Tests pass so I'll merge this fyi @sgiehl @diosmosis
@tsteur should we trim the referer url to that length before storing it? otherwise it might fail when a database runs in strict mode but the referer was actually longer...
@sgiehl sure I'll add this in a bit