Analytics
5.9K members online now
5.9K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

How to view multi-field search data in Analytics Site Search?

Explorer ✭ ✭ ☆
# 1
Explorer ✭ ✭ ☆

This is the URL structure example:

/search.php?action=search&keywords=marketing&town=Northampton+MA&date=30

 

I enable site search tracking, with the query parameters:
keywords, town, etc.

 

I then want to be able to see the terms supplied, organized by each of those query parameters. So I want to click into the category "keywords" and see all the keywords, or click into "town" and see all the towns.

 

 

How do I get there?

2 Expert replyverified_user

How to view multi-field search data in Analytics Site Search?

Rising Star
# 2
Rising Star

Hey David,

 

Depending on your objective there are a few things that you can do. 

 

1.  You could choose to not tick "strip query parameters out of URL" and then just analyze the raw data in the content reports.

 

2.  Change your query param to just keywords and then add in "town" etc as catgeory parameters.   This will let you select search category as your primary dimension in the seach terms report or in the overview report.  You can then drill in to see what categories were selected.

 

3.  This may be the most flexible and give you what you want and that is to store town, etc as a hit level custom dimension and then pull these into your own custom report or as a secondary dimension into the search terms report.    This is super simple if you are using GTM, if not you'll need a developer to grab these values and pass them into the tracking code.

 

More on custom dimensions:

 

https://support.google.com/analytics/answer/2709828?hl=en

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How to view multi-field search data in Analytics Site Search?

Top Contributor
# 3
Top Contributor

Hi @David K - as @Theo Bennett said Custom dimensions are the way to go though a duplication would even be more prudent so you can preserve the feature metrics AND still have the granular CD overview. 

 

I did wrote some simple intro a while back - http://escapestudio.net/travel-sites-and-google-analytics-site-search-essentials/ and check this article from Simo Ahava on the subject - http://www.simoahava.com/analytics/fix-ga-site-search-google-tag-manager/. 

 

Kind regards,

Zorin

Web analyst @ escapestudio.net