WiscWeb - WordPress UW Theme - Adding a Google Programmable Search Engine to Your Site
WiscWeb sites have the ability to add Google Programmable Search Engine (formerly known as Google Custom Search) functions to their site to supplement the native WordPress search technology. This document will walk you through the process.
- Support: Support is not available from the UW-Madison Google team for non-core apps. We recommend the following for assistance:
- Review Google documentation.
- Enroll in free Google training
- Recommendation: Use a departmental service account when using non-core apps to share ownership of data and avoid losing access to data owned by a former employee/student.
- Consideration: Google will only add results for a page that has already been indexed by their search engine. If you are not seeing a page show up in your results, please consider reviewing and implementing the steps outlined in WiscWeb - WordPress UW Theme - Request Google to Recrawl Your Site or Page.
- Step 1: Creating a Google Programmable Search account
- Step 2: Adding the search engine ID to your site
Google Programmable Search Engine allows you to provide your users with more robust search capabilities. The native WordPress search that comes standard with WiscWeb sites only searches for keywords in your pages and posts and can fail to find relevant results. Google's Programmable Search provides more accurate searches and includes additional content from uploaded files (like PDFs) and custom post types (like Fac/Staff content).
Here are a few examples of what you can do with this tool:
- Customize the appearance of your search results
- Connect it to your Google Analytics account so that the two tools are sharing data on user behaviors
- Add autocomplete to your search box
- Categorize your search results
For a full list of Google Programmable Search Engine's abilities, please see the related Google documentation.
To create a Google Programmable Search account, follow the instructions in UW-Madison Google Workspace - Create an ad-free Programmable Search Engine
Note: The documentation linked above will also walk you through how to remove ads from your search account.
- Log into your WordPress site dashboard, hover your mouse over the Appearance menu on the left and choose Customize.
- In the left menu, select Search Options.
- In the next screen, check the box for "Use search on this site."
- Once you have that selected, you can then enter your Search Engine ID value in the field, and click Save & Publish