Skip to main content
User Search History Report

How to access the search log database to view your users' search history.

Joel Bradley avatar
Written by Joel Bradley
Updated over a week ago

Tags | Reporting | Search |

Applies to: Enterprise

ADMIN PRIVILEGES REQUIRED

This documentation is for Stack Overflow for Teams Enterprise. Free, Basic, and Business users can access their documentation here. Find your plan.


Overview

Stack Overflow for Teams Enterprise (SOE) stores search query logs in a database. You can access these logs on a dedicated SOE report page to get insights into your users' search activity.

Access the search history report

For statistics about the terms your users are searching for, go to your site's search history page at https://[your_site]/developer/search/log. This report shows how often users enter specific search terms, and what the most common terms are.

In addition to general search statistics at the top, the search history page has three tabs:

  • Last 50 Searches The last 50 searches, ordered from most recent to oldest.

  • Top Last 7 Days The most frequently-used search terms in the last week.

  • Top Last 30 Days The most frequently-used search terms in the last month.

NOTE: When a search returns no results, SOE will try again with the search terms enclosed in quotes. This results in duplicate entries in the query log.

Google Analytics

SOE administrators can view detailed usage, historically and in real-time, by integrating Google Analytics (GA). The GA integration allows you to track search history, page views, sessions, unique users, and more.

Download user search history

Admins can use this Python API script to query all searches and create a .CSV data file. The script is read-only, with no ability to change or add content on your site. We offer this script for your usage with no additional support.

Did this answer your question?