1. Sign up in Google Analytics
2. Enable site search tracking
In your Google Analytics, enable "Site search tracking" in view settings. To make the tracking work, enter the name of the URL parameter used in Shop-Script for product search — "query".
3. Track site searches
To view search reports, select the desired property and view in your Google Analytics account, open "Reporting" tab, and select "Behavior → Site search".