Google Analytics

First, configure the module at: admin/config/system/googleanalytics

If site search is enabled in the Drupal settings, then, to configure search in the Google Analytics dashboard, go to Admin -> View Settings, enable site search tracking, and put the following in as the query parameter:

search

If you are using search api, you may have multiple search pages. In that case, you can add them all to the snippet above, separated by commas like so:

search,search/site,search/example

External References

Article Type

Drupal Module: Common