Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 44

Google Analytics "Site Search" with vBulletin search

This is a discussion on Google Analytics "Site Search" with vBulletin search within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Since we're all here to gather as much information as possible on how well our sites are doing, I find ...

  1. #1
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times

    Google Analytics "Site Search" with vBulletin search

    Since we're all here to gather as much information as possible on how well our sites are doing, I find the following Google Analytics feature extremely interesting.

    Google Analytics has a great feature these days which allows you to tracks internal site searches, and get some nice analytics in return.

    I would love to see our forum searches hooked up to this, to get a better understanding what people are searching for, internally on our site.

    Does anyone know how to achief this with vBulletin? GA looks for URL encoded search strings (ie: search?hl=en&q=Keywords+here), but since vBulletin uses a different technique, it would only be alternativly possible by feeding the google script like this : pageTracker._trackPageview('search?q=searchQueryHe re');

    Any idea how I pass the entered search query also to the little GA script?


    I found two links describing the technique used, which might be helpfull:

    https://www.google.com/support/googl...75817&hl=en_US

    Google Analytics Site Search | Wiki | ExpressionEngine


    I've posted this question at vBulletin.com as well, but I guess vBSEO's forums has more people interested in stats & results, in order to "traffic tune" their websites

  2. #2
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    33 times
    Blog Entries
    9
    Have you discovered a solution yet? This would be a quite useful capability.

  3. #3
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times
    Still no solution yet. I'm not a coder, else I would have tried myself. I can't believe there's so little interest though for internal searchs stats.

  4. #4
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    33 times
    Blog Entries
    9
    This is something we might look at eventually. The way vBulletin does there search is a little inconvenient for these purposes. Right now our task list is overbooked; however, we may revisit this, because it would be interesting and valuable information to have at our disposal.

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Mint is able to track internal searches using the search.php script.
    unfortunately, vB directs the search.php?q=abc into search.php?searchid=123

    It's rudamentary at best... it gives you the searchid.

    but, if you want, you can see those searches (as long as vb hasn't expired them) to see what people are looking for.

    In the end, I think you'll find that there's a couple gimmes of what people search for (main theme of your site) and the rest are 2-3 repeats of not so common phrases.

  6. #6
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times
    Briansol, we use Mint already, but it's way too limited and focusses only on realtime/recent stats since you can't specify date ranges or do any serious analyzing of the gathered stats. Plus, it's made for one user only to view it, since it shares all settings & prefs with anyone you give access to your stats.

    Google comes with many more interesting insite search specific features, such as:
    • Search categories
    • Visits with Search
    • Total Unique Searches
    • Results Pageviews
    • Search Exits
    • Search Refinements
    • Time after Search
    • Search Depth
    • Trending
    and much more. So it's not just about what keywords people are entering, it's how they use the search function.


    I'm aware that vBulletin transforms the search result page into search.php?searchid=10646, that's why there's still a different solution possible.

    Notice that on the search result page, the keywords are being summed up.

    All we need to figure out is how to pass those keywords into Google's Tracking Code on that page, like this: pageTracker._trackPageview('/search?q={exp:search:keywords}');

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please try to modify functions_vbseo.php file (make sure that you are implemented the new analytics code asa per New Google Analytics Code ):
    PHP Code:
    if(VBSEO_ADD_ANALYTICS_CODE)

    add below:
    PHP Code:
                global $display;
                
    $track_url '';
                if(
    THIS_SCRIPT == 'search' && $_REQUEST['do'] == 'showresults' && $display['highlight'])
                    
    $track_url 'search.php?q='.urlencode(implode(' ',$display['highlight'])); 
    find:
    PHP Code:
    pageTracker._trackPageview(); 
    replace with:
    PHP Code:
    pageTracker._trackPageview('.($track_url?"'$track_url'":"").'); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #8
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times
    Many thanks Oleg, this is exactly what I was looking for. It seems to work at first sight, when looking at the source code of our search result pages. I'll have to wait another day though to see the results showing up in our Google Analytics account.

    I did add an extra forums category into the code since we use the site search already on other parts of the site as well.

    PHP Code:
                global $display;
                
    $track_url '';
                if(
    THIS_SCRIPT == 'search' && $_REQUEST['do'] == 'showresults' && $display['highlight'])
                    
    $track_url 'search.php?cat=forums&q='.urlencode(implode(' ',$display['highlight'])); 
    I would strongly suggest to implement this feature into the next release of vBSEO!

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, this is included in our interim vBSEO build and running @ vbseo.com now, we'll see how it goes when analytics reports are updated.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #10
    Senior Member
    Real Name
    Samo
    Join Date
    Jan 2006
    Location
    Slovenia
    Posts
    118
    Liked
    0 times
    i included this code at my place too ... will tell you tomorow if it works ... what did you put in Query Parameter (required): search.php, search.php?searchid or something else?

  11. #11
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times
    We use for the query parameter:
    q,keyword

    And for the Category parameter:
    cat


    keyword & cat are used on a different non forum part at our website.

  12. #12
    Junior Member
    Real Name
    Peter Van den Wyngaert
    Join Date
    Jan 2008
    Posts
    15
    Liked
    0 times
    The first results showed up in our stats... It's all looking very good!

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Looks great in our reports too!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  14. #14
    Senior Member
    Real Name
    Samo
    Join Date
    Jan 2006
    Location
    Slovenia
    Posts
    118
    Liked
    0 times
    my results are empty ... what i must include in this Query Parameter (required): isnt this for search.php? ... or did i missunderstand that?

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You should just apply modification as described above, then enable Site search in analytics profile, enter "q" as query parameter and give it some time (a day or so) until reports are updated.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. does "disallowing copy" effect search engines bots ?
    By khalid890 in forum General Discussion
    Replies: 2
    Last Post: 10-14-2007, 12:29 PM
  2. Danny Sullivan - Search Engine Watch "Rockstar"
    By Joe Ward in forum General Discussion
    Replies: 2
    Last Post: 09-19-2006, 03:30 AM
  3. Replies: 3
    Last Post: 05-16-2006, 05:38 PM
  4. Custom rewrite rule for "Search" and "Search Result"
    By Sony in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 09-24-2005, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •