After some playing around with not working settings, its quite easy to do. But since its not well documented, i’ll write a quite How To here.
Setting up Google Analytics
Assuming you have your Google Analytics set up properly there are some settings here that we need to take a look at.
- Go to the overview page of ALL websites
- Search your Drupal website and click on the EDIT on the right site
- Under “Main Website Profile Information” click the edit on the top right corner of the box
- Under “Site Search” make sure “Do Track Site Search” is checked
- Under “Query Parameter” fill in “search,search/apachesolr_search,search/multisite_search” without the “
- Click save changes
Setting up Drupal
You need to have the core search module enabled for obvious reasons. It should work out of the box for normal Drupal sites.
If you are using the Google Analytics module :
- Go to admin/settings/googleanalytics
- Under “Advanced settings” make sure “Track Internal Search” is checked
- Click save changes
Hi Mario -
Thanks for your post!
I have set up both Google Analytics and Drupal as you describe above. Our Site Search reports have started to show internal searches, but not ALL internal searches. The searches that I have been doing are not showing up in the Site Search reports.
Any ideas as to why not all searches are showing up in the reports?
Thanks.
Bridget
What searches are missing?
Do you see any common pattern on searches that are slipping through?