ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Saving user search terms? Possible? Module?

October 03, 2010 5:26am

Subscribe [3]
  • #1 / Oct 03, 2010 5:26am

    John Macpherson

    113 posts

    Hi,

    Im a little surprised i havn’t managed to find a tool that saves user searches into a module or similar. Or maybe im missing something that’s built in?

    Iv also been through everything on devot-ee and nothing has come up.

    Viewing this data is agreat for understanding your users, and therefore improving your website.

    Thanks.

  • #2 / Oct 03, 2010 9:56pm

    hd 

    156 posts

    If you are using Google Analytics (and already have the embed code), you can accomplish this with a wee bit of javascript.

    have this after the ga.js load (you may need to alter their default embed code to ensure you execute this AFTER ga.js has been loaded):

    pageTracker._trackPageview("/search/{exp:search:keywords}{/exp:search:keywords}");

    or if using jquery:

    $(document).load(function(){
        pageTracker._trackPageview("/search/{exp:search:keywords}{/exp:search:keywords}");
    })
  • #3 / Oct 04, 2010 6:52am

    e-man

    1816 posts

  • #4 / Oct 04, 2010 7:44am

    John Macpherson

    113 posts

    Thanks HD.

    Implemented the code, so fingers crossed when i wake tomo ill see some data.

    E-man, thanks as well but i want to see all data, not just in real time what people are searching for, which is what to my understanding that tag does.

    Much appreciated.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases