Search tracking

This topic contains 0 replies, has 1 voice, and was last updated by  Tom Chung 2 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1992 Reply

    Tom Chung
    Participant

    Hi, I wanted track my search result recording what the people searching and how many results and which ID’s getting listed.

    query:”car in miami”
    search results: 3 result found
    id=15
    id=18
    id=25

    And write the recording in a .txt file.

    This my php test code, I want insert, when I know where to put it.


    // wilton
    $content = “id=”.$id.”\n”;

    $fileName = “_search_results_log.txt”;
    $fp = fopen($fileName,”w+”);
    fwrite($fp,$content);
    fclose($fp);
    // wilton end

    Any idea, where I can build it?

    Or is there any other better method to do it?

    thanks.

Viewing 1 post (of 1 total)
Reply To: Search tracking
Your information: