Question about using Track Site Search using the Javascript trackSiteSearch() function

I read the section about using the Javascript function Track Site Search using the Javascript trackSiteSearch() function, and want to add that to the Tracking Code. I will paste the Tracking Code below. I tried simply replacing _paq.push([“trackPageView”]); with
_paq.push([“ttrackSiteSearch(keyword, category, searchCount”]); but that did not work. I welcome any suggestions or guidance. Many thanks, Dianna