English English Spanish EspañolKorea한국어
Straker»Company»Blog»2007» Recording Searches Done On A Site

Recording Searches Done On A Site

In the reporting in ShadoCMS, there is the ability to report on the searches done using the site's search capabilities.

If you go to: Reporting -> Usage Graphs
and select "Search Words" in the "Select Graphs to display"

Often this report shows no results, as the site implementation doesn't have the code to gather the information.

Use the following code where the search is done to gather this information (depending on site implementation, this maybe in a .cfm file or within a CFC):

<!--- get the search service --->
<cfset oSearch = application.shado_obj_factory.get("shadomx.services.search.shado_obj_search")>

<!--- Code to do the search here --->

<!--- record the information --->
<cfset oSearch.insertSearchWords( searchWords = theSeachWords , searchResults    = searchResultQuery.recordCount ) >

 

Once you have implemented this code, you can report on this information in the Reports section of ShadoCMS.


Comments

Add a comment




Add Comment