Search tracking issue

Hi Team,

I have a question, on Sharepoint search system if you make two searches in a row you have this kind of url :

First search :
/results.aspx?k=search

Second search :
/results.aspx?k=search#k=search2#l=1036

The first search is tracked by matomo but the second isn’t . How can I make matomo to track the second search with the second keyword ?

Thanks in advance for your help.

Benjamin