Site Search: Option 1
Perform a search for 'analytics' on your website and look at the URL.
What do your Site Search URLs look like?
If the resulting URL looks like one of the following:
http://www.example.com/search?q=analytics
http://www.example.com/index.php?id=search&term=analytics
http://www.example.com/search.asp?search_term=analytics&id=ac9024
You can follow our steps to setup Google Analytics Site Search.
Site Search: Option 2
If the resulting URL looks like one of the following:
http://www.example.com/index/search/analytics
http://www.example.com/search.php/keyword/analytics/id946
http://www.example.com/searchterm/analytics
Because Site Search reports are processed before filters are processed you cannot simply create a filter to modify your Site Search URL within Google Analytics. Instead you need to modify the tracking code on the search results page to dynamically pass the search term using a virtual pageview (see 'option 3 below').
Latest Tweets
* Just posted a back to basics post on setting your default page in Google Analytics; http://goo.gl/yvnd De-duplicate! #ganalytics 15 days ago
* I am so tired of poor #ganalytics setup from agencies and web companies. It's the clients data. Create a new account already! 40 days ago
Follow us on Twitter
Previous Articles
* Goal Abandonment Rate in Google Analytics Explaine...
* New Features Added To Motion Chart
* Google Analytics Kicks Microsoft Analytics
* Google Analytics and SEO
* Web Analytics Wednesday in Sydney
* Free Webinar by Google
* How to analyze results in Google Analytics
* Google AdWords Scam
* Google Analytics vs. Microsoft Analytics
* Benchmarking reports in Google Analytics
Feeds
News Feed Subscribe to this blog
Subscribe with Google
Archives
* July 2007
* September 2007
* October 2007
* November 2007
* December 2007
* February 2008
* March 2008
* May 2008
* June 2008
* July 2008
* November 2008
* March 2009
* May 2009
* September 2009
* October 2009
* November 2009
* January 2010
* February 2010
* March 2010
* May 2010
* August 2010
Certified Partner
We provide professional Google Analytics training and consulting services.
Google Analytics Authorized Consultant
Google Analytics Site Search: Setup Options
There are a number of ways to setup Google Analytics Site Search depending on the way your website functions and the URLs your search function creates.
Site Search: Option 1
Perform a search for 'analytics' on your website and look at the URL.
What do your Site Search URLs look like?
If the resulting URL looks like one of the following:
http://www.example.com/search?q=analytics
http://www.example.com/index.php?id=search&term=analytics
http://www.example.com/search.asp?search_term=analytics&id=ac9024
You can follow our steps to setup Google Analytics Site Search.
Site Search: Option 2
If the resulting URL looks like one of the following:
http://www.example.com/index/search/analytics
http://www.example.com/search.php/keyword/analytics/id946
http://www.example.com/searchterm/analytics
Because Site Search reports are processed before filters are processed you cannot simply create a filter to modify your Site Search URL within Google Analytics. Instead you need to modify the tracking code on the search results page to dynamically pass the search term using a virtual pageview (see 'option 3 below').
If you or your web developer is unable to modify the tracking code on the search results page, then you might want to consider one of the following filters to at least make the Top Content report easier to scan for internal search terms. Remember, that this does not allow you to use the Site Search reports within Google Analytics.
Possible filters:
If your URL looks like http://www.example.com/index/search/analytics you will need to setup the following filter:
Google Analytics Site Search
Field A -> Extract A: Request URI: ^/index/search/(.*)
Output To -> Constructor: Request URI: /search?q=$A1
If your URL looks like http://www.example.com/search.php/keyword/analytics/id946 you will need to setup the following filter:
Google Analytics Site Search
Field A -> Extract A: Request URI: ^/search.php/keyword/(.*)/id
Output To -> Constructor: Request URI: /search?q=$A1
If your URL looks like http://www.example.com/searchterm/analytics you will need to setup the following filter:
Google Analytics Site Search
Field A -> Extract A: Request URI: ^/searchterm/(.*)
Output To -> Constructor: Request URI: /search?q=$A1
These filters will modify your Top Content reports:
Google Analytics Site Search Report
But won't allow you to use Site Search reports:
Google Analytics Site Search Report
Site Search: Option 3
If the resulting URL does not contain the keyword you searched for then you will either need to modify your search form or modify your Google Analytics Tracking Code to create a virtual pageview.
For example you search for 'analytics' and the URL of your search results page looks like:
http://www.example.com/search
http://www.example.com/index.php?id=search
http://www.example.com/search-results.asp
View the source of a page on your site that contains the search input, if your form looks something like this:
view sourceprint?
1.
If you are unable to modify the form method or the change does not provide the search parameter in the URL then you will need to modify the Google Analytics Tracking Code to dynamically create a URL that is correctly structured for Site Search.
- Login per inviare commenti
- 240 letture



