Tracking Materialize Autocomplete results

Hi there,
Working on a site that uses the Materialize framework, and I’m using the Materialize Autocomplete (https://materializecss.com/autocomplete.html) on the search box. The site is at https://apps.library.albany.edu/dbfinder/. 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?