WiscWeb - Adding a Google Programmable Search Engine to Your Site
Important
- Note: This app is not a “core app” under UW-Madison’s Google Privacy Policy or Terms of Service.
- 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
- Consideration: While service accounts can be used for non-core apps, consider that these have a 0GB quota in My Drive.
- 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 - Request Google to Recrawl Your Site or Page.
Overview
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.
Creating a Google Programmable Search account
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.
Adding the search engine ID to your WiscWeb project
- 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