On the Use of the trackSiteSearch() method


(Roddy A. Stegemann) #1

According to the manual “We recommend not to call trackPageView() on the Site Search Result page”. What is the purpose of this recommendation? Is it to avoid double-counting? Does it mean that the trackSiteSearch() method performs two tasks simultaneously:

  1. Send the contents of the search string to the Matomo database, and
  2. Record a track page view.

and, so as not to duplicate the latter do not include trackPageView() on the same page.

Roddy