Mobile app version of vmapp.org
Login or Join
Radia820

: Google Analytics: How to track on site search? I just created a widget where I can see all the searches like in the screenshot. I use following filter regexp to get all urls I want see:

@Radia820

Posted in: #GoogleAnalytics

I just created a widget where I can see all the searches like in the screenshot. I use following filter regexp to get all urls I want see: q=([^&]+)

But it's still too much information, because I do not want see the whole url. I just want see the things between () like iphone or samsung.

Like in other languages you can slice out a part of a string with regexp and address those parts in example with , , etc.

Is there any possibility to just get them into the widget table or will I've to do it with events or something similar?



Edit:
As you see on this screenshot, I get the whole URL.

But I just want a result like that:

What I get: What I want:
------------------------------ ---------------------
| /product/search?q=eos+650D | | eos+650D |
------------------------------ ---------------------
| /product/search?q=iphone | | iphone |
------------------------------ ---------------------


But it looks like this regexp filter q=([^&]+) is really just for filtering the URLs and not for better result display. So I've to do it with events or dimensions.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

Google Analytics has a built in feature that will allow you to grab the data which you are trying to capture.

You can enable site search like so:-


Within Google Analytics, click the 'Admin' link (top right).
Click the account that contains the web property and view for which you want to set up Site Search.
Click the web property that contains the view for which you want to set up Site Search.
Use the View menu to select the view that you want.
Click the View Settings sub-tab.
Under Site Search Settings, select Do Track Site Search.
In the Query Parameter field, enter the word or words that designate an internal query parameter, such as "term,search,query". Sometimes the word is just a letter, such as "s" or "q". (for example: if the search URL looks like domain.com/?q= on your website, you'd enter just q in the query parameter field.


Read more on the Site Search settings and set up in Google Analytics.

There is also an illustrated step by step walk through of the process here.

After enabling Site Search in GA, you'll be able to access a report (like the below screenshot) showing all the entered search queries on your website from the left hand menu.

Behaviour > Site Search

Which you can then subsequently create widgets from or segment as and how you wish.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme