---
updatedAt: 2026-09-28T14:50:21.000Z
agentTools:
  projectIndex: https://developer.searchblox.com/llms.txt
---

# 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

1. **Navigate to Google Analytics**\
   Sign in with your Google account\
   Go to <https://www.google.com/analytics/web/#home/> your analytics account in Google.

![](https://files.readme.io/e040620-sitesearch1.png "sitesearch1.png")

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

![](https://files.readme.io/d671338-sitesearch2.png "sitesearch2.png")

3. Click **Get Tracking ID**

![](https://files.readme.io/124efaa-sitesearch3.png "sitesearch3.png")

4. Accept the terms and conditions

![](https://files.readme.io/ca59b02-sitesearch4.png "sitesearch4.png")

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

![](https://files.readme.io/eb63f36-sitesearch5.png "sitesearch5.png")

6. Click the Admin button in the bottom-left corner to view the properties.

![](https://files.readme.io/ac75ba1-sitesearch6.PNG "sitesearch6.PNG")

7. You should now be able to view the settings and properties for the Account, Property, and View.

![](https://files.readme.io/e78d17d-sitesearch7.png "sitesearch7.png")

8. Click **View Settings** of **View**

![](https://files.readme.io/8966abf-sitesearch8.png "sitesearch8.png")

9. 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.

![](https://files.readme.io/fb5e0a8-sitesearch10.png "sitesearch10.png")

10. 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.

![](https://files.readme.io/01a9c51-sitesearch11.png "sitesearch11.png")

10. Specify the snippet in your index.html

![](https://files.readme.io/46f0a66-sitesearch12.png "sitesearch12.png")

11. 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**. `

![](https://files.readme.io/9ba1a65-sitesearch13.png "sitesearch13.png")

12. Please make sure to select the required time interval in the top-right corner.

![](https://files.readme.io/fff9d11-sitesearch14.PNG "sitesearch14.PNG")

> 🚧 Note:
>
> Search terms may take up to an hour to appear in Google Analytics after users perform searches.

<br />

## Additional Pointers

1. **Exporting and Saving Reports**\
   **Export Options:**
   1. PDF (ideal for sharing)
   2. CSV (for data analysis)
   3. 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
2. **Viewing Site Traffic**\
   **Primary Metrics Dashboard:**
   1. Real-time user count
   2. Traffic sources overview
   3. Geographic distribution
   4. Device breakdown

![](https://files.readme.io/8856251-sitesearch15.png "sitesearch15.png")