News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Search Stats

Started by camoura, September 26, 2010, 11:50:50 PM

Previous topic - Next topic

camoura

I am refering to the setting in Google Analytics where you can track the search terms.

It was started as a Mod Request but it ended up as a coding thing.

The mod would be something like a stats page where all the search words would be listed.

Wordpress has a nice search stats pluging where it lists the most searched words the last 7 days, last month, etc.

Back again to Google Analytics, I tried putting search as the query parameter but it did not work.

Joker™

#21
Quote from: camoura on September 29, 2010, 09:36:22 AM
Back again to Google Analytics, I tried putting search as the query parameter but it did not work.
If i get time i'll surely try it in my google analytic, hope some positive result will come out.

*Edit - Have you read this page?
https://www.google.com/support/googleanalytics/bin/answer.py?answer=75817&hl=en_US
Quote5. Enter your 'Query Parameter' in the field provided. Please enter only 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". You may provide up to five parameters, separated by a comma.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

camoura

#22
Yes, I read that.

I tried the word search as query parameter but it did not work.

Suppose we have index.php?action=search2;advanced=1;search=keword as part of the url, which are the parameters?

action, advanced, search ?

So, search should work, right?

EDIT
I have a wordpress blog that shows the search url as http://blog.com/?s=test
My google analytics has the query parameter set as s. It works nicely.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

camoura

Well, I sort of managed to get google analytics to track the searches, but it is showing the search terms as:

search2;advanced=1;search=KEYWORD;searchtype=1;user ...... (the whole url)
original url is: /index.php?action=search2;advanced=1;search=KEYWORD;searchtype=1;user ...... (the whole url)

I used as search parameters: action,advanced,search,s

It seems to me that google is considering as a single parameter everything the come after the question mark. Can anyone confirm this?

Any way to solve this? Maybe replacing the ";" to "?" so google can understand???

Advertisement: