Tracking Materialize Autocomplete results

Hi there,
Working on a site that uses the Materialize framework, and I’m using the Materialize Autocomplete ( on the search box. The site is at It’s a database of external URLs.

Most of our visitors use the autocomplete and we added code that sends them to our reference with an id (resource.php?id=1234) that then sends them directly to the external URL.

Trouble is that when they do that, Matomo can’t tell me what they were searching for. This is what most of our users do, so we would really like to know what they search for.

Does anyone have advice/instructions?

How did you configure the search track?