Skip to content

Enable Site Search Tracking in MVMCloud Analytics

To get started with site search tracking, log in as an Administrator and go to Administration > Sites > Manage (or Administration > Measurables > Manage ). From here, edit your chosen website or through the pencil icon located on the right Edit site icon you can enable or disable site search tracking for your site.

Menu manage site

Scroll down until you find the Site Search setting.

Activate site search

All site search reports are available in the left menu Behavior > Site Search.

After you activate site search tracking in the topic above, you will need to configure the internal search pattern on your site. There are three ways to do this.

Track Site Search Using URL Parameters (Default)

The easiest way to track internal search keywords is to specify the name of the URL parameter that will contain the search keyword. By default, MVMCloud Analytics will read the URL and look for a parameter with any of the following names: q, query, s, search, searchword, k, keyword.

The Administrator can also specify parameter names to be used by default across all sites. Do login to MVMCloud Analytics as Administrator, go to Administration > Sites and observe the configuration of the Site search at the bottom of the page. If you uncheck the default parameters option, you can choose your own url parameters. As said above, These parameters will need to be part of the search result page URL so that MVMCloud Analytics can read the URL and capture what was typed.

Site search parameters

Track Site Search Using the Javascript trackSiteSearch() Function

If tracking search results via URL is not possible (for example, if you use a rewritten URL without query parameters, for example /search/keyword), or if you also want to track the count of search results, you can use Javascript function trackSiteSearch(keyword, category, searchCount). Calling the function will record the search keyword, the search category, and the count of results on the search results page. This can be used on search results pages instead of calling trackPageView().

Check out more information in Javascript documentation for trackSiteSearch()