Capture search terms from search page

Posted on 2008-11-17
Last Modified: 2013-11-07
I'm wondering if anybody knows if you can capture search terms from a search page and save the search terms somewhere like a log file. I'm not talking about users coming from google, rather the users that are already on your site and use you search function. How can I capture those keywords? Any tutorials online? Thanks
Question by:flukester
    LVL 11

    Assisted Solution

    do you have a database behind your site? Pass them into there.

    Author Comment

    Are you saying every time someone hits the search button, insert a row into a table with the search term?
    LVL 8

    Accepted Solution

    Thats obvious.
    If you want to store all keywords into multiple rows you need to use Split() function.

    Dim keys As String = "my keywords to insert"
    Dim keywords() As String = keys.Split(" ")
    For Each k As String In keywords
        ' insert in DB your k.ToString()

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now