Introduction to Site Search (or Internal Site Search)
Site search is a functionality provided by a website in the form of a search box through which website visitors search the website for information or products.
If your website provides site search functionality then you should set up ‘site search tracking’ in Google Analytics.
Introduction to Google Analytics Site Search Tracking
Through Google Analytics site search tracking you can determine:
The web pages from which visitors started their search on your website (start pages)
The search terms used by website visitors to find information on your website.
The search categories used by website visitors
The web pages visitors saw after clicking on one of the search results on the search result page (i.e. search destination pages)
How effective the search results were in driving user engagement, sales and conversions.
With this insight, you can determine missing contents on your website i.e. the contents which should be there (a lot of visitors search for it) but are not there.
By analyzing site search reports you can improve the quality of search results for key phrases and develop a better user experience. You can also identify new keywords for your search marketing campaigns (SEO and PPC).
A search query parameter can be any combination of characters. Following are examples of valid query parameters:
keywords
term
q
s etc
Similarly, a search category parameter can be any combination of characters.
If your website has got a site search box then perform a search on your website. Now analyze the URL of the search result page.
If your website site search functionality uses a search query parameter then most likely it will append the query parameter to the search URL.
Similarly, if your website site search functionality uses a search category parameter then most likely it will append the category parameter to the search URL.
However, these days more and more websites are being built whose internal site search does not use query or category parameters. The search term is either present in the URL (but without query/category parameter) or it is not present at all.
Following is an example of a search page URL which contains the search term in the URL but without the query parameter:
Following is an example of a search page URL which contains both the search term and the search category in the URL but without query and category parameters:
https://www.abc.com/search#shirts&categories_02
Following is an example of a search page URL which does not contain: search term, search query/category parameter in the URL:
https://www.optimizesmart.com/search/
Ask your developer, if you are not sure what your query and category parameters are.
Introduction to GET based search engine
An internal search engine like the one used on your website can use GET or POST method to send search information from a user’s web browser to your web server.
If your internal site search engine uses the GET method to send the search information from the user’s web browser to your web server then you are using the GET based search engine.
In the case of GET based search engine, the search information is sent from a user’s web browser to your web server via the URL. Because of this reason, the search term and search query/category parameters appear in the search page URL.
There are no security implications of using the GET method for internal site search unless you are sending sensitive data (like usernames, passwords, etc) along with the search information.
If you are using internal site search on your website, it is wise to use the GET method because of the following reasons:
GET requests can be bookmarked. So a user can bookmark a search result page along with the search query/ category parameters.
GET requests can be cached and they remain in the browser history. Thus making it easy for your website users to return to the last search result page on your website.
You can use a search result page as a landing page for your PPC campaigns. In this way you can create highly targeted campaigns like: ‘Men polo shirt white’
You can easily set up site search tracking for a GET based search engine in Google Analytics.
Get my best selling books on Attribution Modelling
Learn to implement attribution modelling in your organisation
Understand the customer purchase journey across devices
Determine the most effective marketing channels for investment
Click book covers to find out more
Introduction to POST based search engine
If your internal site search engine uses the POST method to send the search information from the user’s web browser to your web server then you are using the POST based search engine.
In the case of POST based search engine, the search information is sent from the user’s web browser to your web server within the body of the HTTP request and not via the URL. Because of this reason, the search term and search query/category parameters do not appear in the search page URL.
POST method is generally used when you want to send sensitive data from the user’s web browser to your web server. For example, if you want to send the submitted form data to your web server then you use the POST method (and not the GET method)
If you are using internal site search on your website, it is wise not to use the POST method because of the following reasons:
POST requests can not be bookmarked. So a user can not bookmark a search result page along with the search/query parameters.
POST requests can not be cached and they do not remain in the browser history. Thus making it impossible for your website users to return to the last search result page on your website.
You can not use a search result page as a landing page for your PPC campaigns. So you won’t be able to create highly targeted PPC campaigns.
You can not easily set up site search tracking for a POST based search engine.
Search information (search query terms, search categories) is hardly classed as sensitive information, so a POST based search engine is not really required.
The only real advantage of using a POST based search engine is that POST requests have no restriction on the size of data you can send from the user’s web browser to your web server.
So if your query string is crazy long with a lot of parameters then it makes sense to use the POST based search engine.
However, instead of using crazy long query strings, use clean and short URLs. Not only are they SEO and user-friendly, they will also let you use the GET based search engine on your website.
Frequently asked questions about site search tracking
What is a site search?
Site search (or internal site search) is a functionality provided by a website in the form of a search box through which website visitors search the website for information or products.
Do I need to set up site search tracking?
If your website provides site search functionality then you should set up ‘site search tracking’ in Google Analytics.
Through ‘site search tracking’ in Google Analytics you can determine: – The web pages from which visitors started their search on your website (Start pages) – The search terms used by website visitors to find information on your website. – The search categories used by website visitors – The web pages visitors saw after clicking on one of the search results on the search result page (i.e. search destination pages) – How effective the search results were in driving user engagement, sales and conversions.
What is a query string?
A query string is the part of the URL which comes after the ‘?’ character. For example in the URL: https://www.optimizesmart.com/?s=enhanced+ecommerce The query string is: s=enhanced+ecommerce
Should my site search be GET-based or POST-based?
If you are using internal site search on your website, it is wise to use the GET method for the following reasons:
– You can easily set up site search tracking for a GET based search engine in Google Analytics. – GET requests can be bookmarked. – GET requests can be cached and they remain in the browser history. – You can use a search result page as a landing page for your PPC campaigns.
There are no security implications of using the GET method for internal site search unless you are sending sensitive data (like usernames, passwords, etc) along with the search information.
POST method is generally used when you want to send sensitive data Also, the POST method has no restriction on the size of data you can send from the user’s web browser to your web server.
Register for the FREE TRAINING...
"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."
Here’s what we’re going to cover in this training…
#1 Why digital analytics is the key to online business success.
#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.
#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.
#4 Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.
#5 The number 1 reason why conversion optimization is not working for your business.
#6 How to advertise on any marketing platform for FREE with an unlimited budget.
#7 How to learn and master digital analytics and conversion optimization in record time.
My best selling books on Digital Analytics and Conversion Optimization
Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.
Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.
Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.
Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
Learn and Master Google Analytics 4 (GA4) - 126 pages ebook
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.