Google Analytics Integration
Google Analytics Site Search Integration with SearchBlox
Steps to set up Site Search Tracking through Google Analytics
Prerequisites
- Google Analytics account (Universal Analytics property)
- Admin access to your SearchBlox deployment
- Navigate to Google Analytics
Sign in with your Google account
Go to https://www.google.com/analytics/web/#home/ your analytics account in Google.

- When the user clicks Sign Up, they will be prompted to create a new account, as shown below:

- Click Get Tracking ID

- Accept the terms and conditions

- You would be redirected to the Google Analytics Admin page, where you must configure the properties for the site you want to track.

- Click the Admin button in the bottom-left corner to view the properties.
- You should now be able to view the settings and properties for the Account, Property, and View.

- Click View Settings of View

- At the bottom of the View Settings page, locate Site Search Settings.
Enable Site Search Tracking, enter query as the query parameter, and save the settings.

- Navigate to Admin → Property Settings → Tracking Info → Tracking Code, then copy the Global Site Tag and embed it in your site’s index.html file.

- Specify the snippet in your index.html

- Everything is now set up. When users access your search page, you can view analytics for search terms in Google Analytics.
**Reports -> Behavior -> Site Search -> Overview/Search Terms**.

- Please make sure to select the required time interval in the top-right corner.
Note:
Kindly note that there would a delay say an hour or so for the search terms to be updated
Additional Pointers
- Exporting and Saving Reports
Export Options:- PDF (ideal for sharing)
- CSV (for data analysis)
- Google Sheets (for live collaboration)
Saving Reports:
Click "Save" in any report view
Access later via:
Left Menu > Customization > Saved Reports
Organize with folders and naming conventions
- Viewing Site Traffic
Primary Metrics Dashboard:- Real-time user count
- Traffic sources overview
- Geographic distribution
- Device breakdown

Updated 3 months ago
