We are using Sitecore 9.0 and the SXA search components.
I have found a few articles that state that you need to register the button click event in the search page controller to turn this functionality on: Enabling the internal search in the sitecore analytics
Since we are using the built-in Sitecore SXA Search components, how should this be implemented? Do I need to override the search javascript files and add custom code in there to register the event?