JS Event Tracking - Certain keywords cause a 400 error

I’m using the JS way of tracking Events for Matomo. The problem I encountered certain keywords cause an 400 Bad Request error on the Post to the matomo instance. When I change the keywords the exact same actions are tracked correctly without error.

I get errors for tracking the following event:

[
  "trackEvent",
  "Page-New-Payment",
  "select-manuel-payment",
  null,
  null
]

But if i track it with a different keyword the matomo request does not throw an error, e.g. this is fine:

[
  "trackEvent",
  "Page-New-Payment",
  "foo",
  null,
  null
]

Are there certain keywords which are not allowed in matomo? Could there be a problem with the word “select” because matomo thinks it might be an sql injection?

Hi,

A 400 sounds a lot as if those requests never reach Matomo.

Your webserver is probably using something like mod_security with overly wide rules to block requests by.

You can check your webserver logs to learn more