buyer search statistics
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Sat Mar 15, 2008 2:57 pm
buyer search statistics
anyway to see what the terms buyers are searching for on my site?
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
Re: buyer search statistics
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.
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
Re: buyer search statistics
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
and make it look like
Add following statement in the other using statements at top of the file
Now you can find each searched keyword in the App_Data/SearchInformation.txt
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)
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");
}
Code: Select all
using System.IO;
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com
Re: buyer search statistics
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
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
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Sat Mar 15, 2008 2:57 pm
Re: buyer search statistics
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
- Spencer
Re: buyer search statistics
What did you guys enter for the Query Parameter in google analytics to track the search terms?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: buyer search statistics
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
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
Re: buyer search statistics
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
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Re: buyer search statistics
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!