Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 uninstall.rb
README.textile

SearchSniffer

Simple plugin to sniff inbound search terms from popular search engines

Installation

Installation is easy from Github

script/plugin install git://github.com/squeejee/search_sniffer.git

Usage

class ApplicationController < ActionController::Base
before_filter :sniff_referring_search


end

The plugin populates the @referring_search object containing info that can be passed to a keyword highlighter or internal site search engine to pull related content. For an HTTP referer of http://www.google.com/search?q=ruby+on+rails+houston&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a@

@referring_search.search_terms
=> “ruby rails houston”
@referring_search.raw
=> “ruby on rails houston”
@referring_search.engine
=> “google”

Copyright © 2008 Squeejee, released under the MIT license

Something went wrong with that request. Please try again.