Analytics
4.6K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Multiple search (category) parameters on the same URL

[ Edited ]
Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

I found this article, https://productforums.google.com/forum/#!topic/analytics/YAQBJMpo0ew, but because it is on the old platform I can not read it.
What I want to know is what happens if on the same url I have multiple search parameters like this:

 

mysite.com/?query=green tea original&searchcategory1=Lifestyle&searchcategory2=Drinks&searchcategory3=Tea

 

We have set for Site search Tracking  the word "query"`as query parameter

and the words "searchcategory1", "searchcategory2", "searchcategory3" as Category parameters.

 

I read some rumors, that GA will track only the last search parameter. This would mean that I will have in my reports a search made for Search Term "green tea original" assigned to the category "Tea" and we will have no searches in this case reported for the Lifestyle or Drinks categories, right?

 

 

 

Thank you,

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author Anca Banica
June 2016

Re: Multiple search (category) parameters on the same URL

Top Contributor
# 2
Top Contributor
Hi Anca,

by default both for category and term only one param will be evaluated and used. The post you were looking for is - https://productforums.google.com/forum/?noredirect=true#!topic/analytics/YAQBJMpo0ew.

You have some additional options to concatenate the final search term or category by overriding the page dimensions.

So even if you real URL is mysite.com/?query=green tea original&searchcategory1=Lifestyle&searchcategory2=Drinks&searchcategory3=Tea you could actually send this to GA:
mysite.com/?query=green tea original&searchcategory=Lifestyle|Drinks|Tea. This would require some additional dev time on your side where instead of:
ga('send','pageview'); you would send ga('send','pageview','/?query=green tea original&searchcategory=Lifestyle|Drinks|Tea/);.

Hop it helps.

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Multiple search (category) parameters on the same URL

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
Hello, Thank you!.
Yes. I just needed the confirmation that only one parameter is sent. Meanwhile, thinking more about it, I realized it's also logic. In the search Term report there is the same amount of unique searches as in the Site Search Category report. So this means only one categ/search term is sent to GA.

As we have our implementation via GTM, I'll easily concatenate the categ params, as you also suggested.

Have a great day