buyer search statistics

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
spencer321
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Sat Mar 15, 2008 2:57 pm

buyer search statistics

Post by spencer321 » Thu May 15, 2008 9:16 pm

anyway to see what the terms buyers are searching for on my site?

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Re: buyer search statistics

Post by m_plugables » Fri May 16, 2008 6:42 am

A simple way is to write keywords to some text file for each search made by user. For this just get the entered text information on search control and put it in some text file.
Image
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Re: buyer search statistics

Post by m_plugables » Fri May 16, 2008 6:47 am

Create a text file with name SearchInformation.txt in App_Data
folder of website.
Now edit the ConLib/SimpleSearch.ascx.cs file. Locate follwoing
function in it

Code: Select all

protected void SearchButton_Click(object sender, EventArgs e)
and make it look like

Code: Select all

 protected void SearchButton_Click(object sender, EventArgs e)
    {
        string fileName = 
Server.MapPath("~/App_Data/SearchInformation.txt");
        if(File.Exists(fileName))
        {
            FileStream fileStream = null;
            StreamWriter streamWriter = null;
            try
            {
                fileStream = new FileStream(fileName, FileMode.Append, 
FileAccess.Write);
                streamWriter = new StreamWriter(fileStream);
                streamWriter.Write(Environment.NewLine);
                streamWriter.Write(SearchPhrase.Text);
                streamWriter.Flush();
            }
            catch
            {}
            finally
            {
                streamWriter.Close();
                fileStream.Close();
            }

        }
      
        string safeSearchPhrase = StringHelper.StripHtml(SearchPhrase.Text);
        if (!string.IsNullOrEmpty(safeSearchPhrase))
            Response.Redirect("~/Search.aspx?k=" + 
Server.UrlEncode(safeSearchPhrase));
        Response.Redirect("~/Search.aspx");
    }
Add following statement in the other using statements at top of the file

Code: Select all

using System.IO;
Now you can find each searched keyword in the App_Data/SearchInformation.txt
Image
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com

rdevarona
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 41
Joined: Tue Jan 15, 2008 7:24 am

Re: buyer search statistics

Post by rdevarona » Mon May 19, 2008 8:26 am

Spenser321,

The easiest way to do this is to use Google Analytics' Site Search function (http://analytics.blogspot.com/2007/11/s ... lable.html).

Regards,

rdv

spencer321
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Sat Mar 15, 2008 2:57 pm

Re: buyer search statistics

Post by spencer321 » Wed May 21, 2008 11:36 am

the google site search tracking will work great for the search box on the home page of the ablecommerce site. thanks. however, i don't think it will work with the advanced search page. the url doesn't change on this site. there isn't a search paramenter that google analytics can look for to parce out search results. unless I'm mistaken?

- Spencer

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: buyer search statistics

Post by meer2005 » Wed Jul 21, 2010 10:55 pm

What did you guys enter for the Query Parameter in google analytics to track the search terms?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: buyer search statistics

Post by jmestep » Thu Jul 22, 2010 7:10 am

I think I might have entered k , but I can't find it now. I'm not sure GA will pick them all up if the k is in a form post and not the querystring, but that is just a vague feeling I have from the past and might not be true.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: buyer search statistics

Post by meer2005 » Thu Jul 22, 2010 9:37 am

Yeah, I had k in there. I guess it just took a couple days to start receiving data. Looks like it's working now with the value k

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: buyer search statistics

Post by igavemybest » Thu Jul 22, 2010 11:10 am

Yeah, we utilize google analytics with ecommerce integration. By far the best option to not only see search terms, but conversion rates, aferage sale amounts, revenue, etc. Not to mention it's free!

Post Reply