Elxis CMS Forum

Support => General => Topic started by: xmanhattan on February 13, 2016, 12:04:52

Title: Google Analytics Site Search
Post by: xmanhattan on February 13, 2016, 12:04:52
Hello all,

I have been using Google Analytics for sometime now but I have not analyzed all of the functions of it.
I noticed that the Google Analytics Site Search under Behavior does not provide any information.
The Elxis search function provides information from the website that can be helpful when someone wants to improve their website.

Does anyone know if this requires adding some code to the Elxis search function for this to work?
Title: Google Analytics Site Search
Post by: datahell on February 14, 2016, 12:22:48
Elxis does not log searches.
Title: Re: Google Analytics Site Search
Post by: xmanhattan on February 14, 2016, 14:24:38
google analytics uses this to add the searches
q=keyword

Okay but according to google analytics will this work if I add it to the search form html?

see
https://support.google.com/analytics/answer/1012264?hl=en (https://support.google.com/analytics/answer/1012264?hl=en)
Title: Re: Google Analytics Site Search
Post by: datahell on February 14, 2016, 20:38:32
Elxis search is fully compatible to the standards and already uses the q parameter.

https://www.elxis.org/search/?q=elxis (https://www.elxis.org/search/?q=elxis)

The above will perform the search using site's default search engine.

If you want you can specify the search engine, examples:

http://www.example.com/search/content.html?q=something
http://www.example.com/search/youtube.html?q=something
http://www.example.com/search/images.html?q=something
http://www.example.com/search/mikro.html?q=something
http://www.example.com/search/hotels.html?q=something

"something" must be url encoded. For example "a long string to search for":
http://www.example.com/search/hotels.html?q=a+long+string+to+search+for
Title: Re: Google Analytics Site Search
Post by: xmanhattan on February 15, 2016, 17:35:57
I tried that but it did not work.  Is this applicable to 2009.x?


Title: Re: Google Analytics Site Search
Post by: datahell on February 15, 2016, 17:59:58
I thought you were walking about Elxis 4. No, Elxis 2009 has no such capabilities.
Title: Re: Google Analytics Site Search
Post by: xmanhattan on February 15, 2016, 18:02:52
Okay, thanks Datahell