Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Claushingebjerg 936 posts 2571 karma points
    Mar 10, 2010 @ 13:23
    Claushingebjerg
    0

    Logging search

    Is there any way of logging the searches done through XSLTsearch?

    It would be nice to see what users search for on the site, so you can optimize your content to match search terms and keywords...

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 11, 2010 @ 18:07
    Douglas Robar
    0

    There is no built-in logging in XSLTsearch but you could achieve it in at least three ways...

    1. The simple way is to use Google Analytics and set it up to track search terms on your site's search page(s).

    2. Use SmarterStats or some other server-side web log analysis tool. Since search terms are on the query string you should be able to identify them with the ?search=xyz parameter.

    3. Make a small xslt extension that will log the search terms to a database for later analysis. You'd simply add a call to your extension function in the search template

    Let us know how you finally solve it for the benefit of the next person with the same question!

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft