Skip to content

Tracking internal site search in Google Analytics


With a little help from Google Analytics, the search functionality on your photo website can provide you with a lot of valuable information about your visitors, helping you make more informed changes to improve your site.

Tracking internal site search in Google Analytics - Featured Image

You most probably have a search box on your photo website. But do you know what your audience is actually searching for?

If you’re using website analytics software (like Google Analytics), it takes just a couple of minutes to set-up search tracking.

This can actually give you a great insight into your content:

  • what keywords are most useful/attractive to your visitors
  • what you should add more images of
  • how people are navigating your site when a search is involved

It is most useful for artists/agencies running stock photography sites, or simply successful photographers with large archives, but everybody could benefit from this.

Here are the quick steps involved:

 1. Figure out your site’s query parameter

For PhotoShelter it’s “I_DSC“, for WordPress it’s “s“.

If you’re using some other platform out there, it’s very easy to find out what your own site’s query parameter is. Simply open your site in a new browser tab right now and do a search using a random word. Try to avoid spaces for this test, so let’s use “pinkfloyd”.

Afterwards, notice your site’s URL, it should look something like this:

Website search query parameter

In the image above, the query parameter is “s” (look for what’s between the ? and the = in your URL)

2. Enable site search tracking in Google Analytics

You need to go into your Google Analytics Admin page and click on “View Settings” (after selecting the appropriate Account > Property > View for your site of course).

Google Analytics Admin page - View settingsGoogle Analytics Admin page - View settings

Inside the “View Settings” section, scroll down to “Site Search Settings”:

  • enable “Site search Tracking”
  • enter the Query parameter you’ve figured out in step 1. You can enter more (separated by commas), if you have a hybrid site (WordPress + PhotoShelter for example).
  • you can leave “Site search categories” disabled
  • click Save

Google Analytics site search options

 

3. View your search stats

Google states that “It may take up to 48 hours for data to appear in your reports once you have configured Site Search.“. Your wait period will probably be much shorter.

Afterwards, you’ll start seeing your site search stats inside your analytics reports. You can find your stats in Reporting > Behaviour > Site Search.

Here’s a sample page from one of my old photography sites:

Google Analytics Site Search report - Search Terms

Bonus: Also track search categories

Remember the Site Search settings in step 2 above? You could also enable “Site Search Categories“, for which you need to figure out what your site’s category parameters are. This is usually useful for people who allow searching within specific collection/gallery/categories (sometimes using drop downs). 

For example, you can use PhotoShelter’s gallery & collection IDs as query parameters: G_ID & C_ID. (You need to separate them with a comma when entering them in Google Analytics View Settings: G_ID,C_ID). Or you can use step 1 above to figure out your own site’s category parameters in the URL.

 

I’ll probably also be writing about setting up goals in Google Analytics soon, so stay tuned for updates.

If you're enjoying this article, get email updates (it's free)

We hate spam as much as you do! You can always unsubscribe at any time.
 

4. Dive deeper into your site search stats to take informed decisions

What can you tell from the start pages of your site searches?

See whether people are searching from the place you expect them to (Behavior > Site Search > Pages). If there’s no actual start page (or it says “(entrance)“, it means people reach your search results page directly from search engines or other links you have online. If you do have top internal starting pages, figure out what is happening on those pages that is requiring people do a search.

Remove or update your low-performing search results.

Take a look at your “% Search Exists” stats (Behavior > Site Search > Search Terms). A high exit percentage basically tells you that people didn’t click on any results for that search term and just left the site. Why were they less satisfied with the results? Do those images lack quality? Were you using keywords that are not relevant for the actual images?

Use segments to compare with other visitor groups.

Using the Segment pulldown menu, you can start asking yourself questions relevant to your photography business: How are mobile visitors searching compared to desktop visitors? Are Returning Users searching your site? What are your US-only visitors searching for?

Do you actually get any benefit from having a search option on your site?

In your Site Search > Usage report, you should also have conversion columns in the report table (“Transactions“, “Revenue“). This allows you to compare how you search-visitors compare to your non-search ones, giving you an idea how certain searches impact your conversion rates. Secondly, analyze your Search Depth stats to see the average number of pages people browse after their search, which tells you if the search functionality is actually helping you keep visitors on your site or not.

Are visitors refining their search results?

Your search terms stats (Behavior > Site Search > Search Terms) display a column for “Search Refinements“. If one of your search terms has a high refinement percentage, you can find out why people are not getting the results they want immediately. Click on the term, and then choose the primary dimension to be” Refined Keyword”. This will tell you right away what new keywords people are using to further refine the search results. Could you simplify the process for them? Are you forgetting some useful keywords in your image metadata?

Feature content based on frequent site searches.

This one should be obvious: if you see people often searching for particular keywords, try putting those images more prominently on your homepage or inside featured galleries for example.

 

Resources

Clicky Blog – Setting up “Local search” in Clicky Web Analytics
Google Analytics Support – Five Questions To Ask of Your Site Search Data
How You Can Put Google Analytics Site Search to Work for You
How can you make the best use of site search data?

 

 

Have you discovered anything interesting in your site search stats? Write about it in a comment below.

Off-topic or inflammatory comments may be moderated.
Please add VALUE to the web, thanks!