Google Analytics Integration
Steps to set up Site Search Tracking through Google Analytics
- Go to https://www.google.com/analytics/web/#home/ your analytics account in Google.
- Sign in to your Google Account
- Sign up in Analytics by clicking Sign up button
![sitesearch1.png 1304](https://files.readme.io/e040620-sitesearch1.png)
- On clicking Sign up the user will be asked to create a new account as shown:
![sitesearch2.png 875](https://files.readme.io/d671338-sitesearch2.png)
- Click Get Tracking ID
![sitesearch3.png 1185](https://files.readme.io/124efaa-sitesearch3.png)
- Accept the terms and conditions
![sitesearch4.png 533](https://files.readme.io/ca59b02-sitesearch4.png)
- You would be redirected to Admin page of Google Analytics where you need to set the properties for the site that is tracked
![sitesearch5.png 1288](https://files.readme.io/eb63f36-sitesearch5.png)
- Click Admin button in the bottom left to view the properties
- You should be able to view the settings and properties of the account, Property and View
![sitesearch7.png 1268](https://files.readme.io/e78d17d-sitesearch7.png)
- Click View Settings of View
![sitesearch8.png 891](https://files.readme.io/8966abf-sitesearch8.png)
- At the bottom of the View Settings page, you can find Site Search Settings. Enable the Site search Tracking and provide the Query parameter as query and save the settings
![sitesearch10.png 960](https://files.readme.io/fb5e0a8-sitesearch10.png)
- Go back to Admin -> Property Settings -> Tracking Info -> Tracking Code and copy the Global site tag to be embedded in your site's index.html
![sitesearch11.png 912](https://files.readme.io/01a9c51-sitesearch11.png)
- Specify the snippet in your index.html
![sitesearch12.png 968](https://files.readme.io/46f0a66-sitesearch12.png)
- Everything is set now. When users access your search page, you can view the analytics on the search term in Google Analytics from Reports -> Behavior -> Site Search -> Overview/Search Terms.
![sitesearch13.png 1344](https://files.readme.io/9ba1a65-sitesearch13.png)
- Please make sure to specify the required time interval in 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
- You can export the report as PDF or save the report and view it later. Once you save the report it would be accessible from left menu ->Customization->Saved Reports
- You can also view the general traffic to the site in Home page. You can remove parameters that get displayed in your plugin in Admin-> View Properties -> Exclude URL Query Parameters
![sitesearch15.png 751](https://files.readme.io/8856251-sitesearch15.png)
Updated almost 4 years ago