Setting up Google Analytics Site Search
Step 1Perform a search on your website and look at the URL.
In this example a search for 'analytics' has been performed.

This example shows a search for 'analytics', the resulting URL is http://www.example.com/search?q=analytics. Note that the Query Parameter is 'q'.
(Please note that your website's internal search may return a much longer URL, for example http://www.example.com/search.asp?site=example&area=products&term=analytics. Note that the Query Parameter is 'term'.)
Step 2
Log into Google Analytics and click 'Edit' on next to the website profile.

Step 3
Click 'Edit' for your Main Website Profile Information.

Step 4
Select 'Do Track Site Search'.

Step 5
Enter the Query Parameter from your internal search.

Selecting 'Yes, strip query parameters out of URL' will prevent your search from showing up in your Content reports, for example:

Selecting 'No, do not strip query parameters out of URL' will include your search results in your Content reports, for example:

Site Search also allows you to setup categories. This can be used if your internal search has the ability to segment results across different areas of your website. To setup categories you will need to know the parameter that returns results for the different areas of your website. For example if you are using a Google Mini or Google Search Appliance the Category Parameter would be 'site' on a default configuration.
If your search does not have categories do not enter a Category Parameter.
Labels: Google Analytics, new Google Analytics features, site search


18 Comments:
Nice! Thanks for the walk through.
So, if my query string is: ?q=searchterm&c=category
I will add a q in the Query Parameter field and c in the Category Parameter?
Hi dauclair,
Exactly!
Thanks for commenting. You should begin to see data within the Site Search reports within 6 to 12 hours.
If you have any problems let me know.
That worked out great! I would have liked to had turned this on since the beginning, that is some great data to have! Worked great, I am using OrcaSearch as my site search script. What do you use?
Thanks!
Daryl
We generally provide clients with site search using Google Mini Search Appliances. It is an excellent search solution, although for smaller sites it is probably out of reach. You should checkout Google Custom Search (http://www.google.com/sitesearch/), although the free version does include advertising and it is totally reliant on Google indexed content.
Thanks Benjamin,
I was setup it before but was not works, your step by step guidelines are help me lot implement site search today. I will let you know the result! Thanks Again!
Great post! I'm curious as to how this works with a URL rewrite.
For example, on my site the non-rewritten URL is http://www.andertoons.com/index.php?cmd=search/cats, but you see http://www.andertoons.com/search/cats in the address bar.
Do I enter "cmd=search" in my query parameter field?
very good question! I'd like to know that too :)
ah... you have to wait for results to be recorded. I'd have thought they could go back through your stats and create historical data once you'd activated this...
I have been trying to find this information for quite a bit of time but i could not get the exact information what i needed now.
I have implemented tracking adsense for search now in my google analytics account. Thanks for sharing valuable information.
Hi,
I have problems setting site search on my website.
If I search "something" the url result will be:
/index/find/name/something/keyrif/0/desc/0/type/all
If I search"site search" result is:
/index/find/name/site+search/keyrif/0/desc/0/type/all
In google I put "find" but doesn't work. Please help!
I am going to write a post to answer Mark and Marko's questions about using Google Analytics Site Search where there is no URL query parameter.
There are a number of workarounds to get Google Analytics Site Search working in these scenarios.
Stay tuned! And thank you for the questions and feedback!
I'm having trouble setting up my site search for http://www.gosave.com/stores/popular
We have the following inputs:
website url: http://www.gosave.com
default page: none
exclude url query paramters: none
Apply Cost Data: yes
E-commerce site: yes
Do track site search: yes
Query parameter: q
No, do not strip query parameters out of URL
Do you use categories for site search? No.
The URL for a search term like "overstock" would be:
http://www.gosave.com/searchresult/q=overstock&page=all¶m=0&app=&order=a
"q" is the query parameter on the URL, and we have inputted that to the Analytics settings. However, we are not receiving any results. What are we doing wrong?
Your help would be greatly appreciated. Thanks!
Hi I have some doubt.
/search/?cx=009351760187693034193%3Aao0iah6cfqy&cof=FORID%3A10&ie=UTF-8&q=quality&sa.x=0&sa.y=0#1086
Please give this parameter.
with regards,
P. Kaliraja
Hi everybody,
do you have any news about Marko's question? I have the same problem with my websites. We would like to use Site Search but It doesn't work.
Hi Bharti,
It looks like your query parameter is 'q' - assuming you performed a search for 'quality'.
Hi Alu,
You can checkout our post about using Site Search when you don't have query parameters here - http://www.googleanalyticsresults.com/2009/05/google-analytics-site-search-setup_21.html
For our query "Walmart" we produce the URL:
http://www.gosave.com/searchresult/q=walmart&page=all¶m=0&app=&order=
would our query be simply "q"?
I ask because we have tried everything, and we are not producing search results now for over a month.
I use google mini for my search, it's on another domain. So far, I haven't seen any results from the search. Any advice on what to check/do?
Thanks
Post a Comment
Links to this post:
Create a Link