Introduction: Did You Mean? is an ad-product for search traffic. The unit appears at the top of the page and shows the caption, "Did you mean:" followed by a list of keywords related to the visitor's search query. Each keyword is hyper-linked to an advertiser on a cost per click basis via BEDROCK. Example: Before landing on this page the visitor typed "Miley Cyrus" into Google and clicked on a search result pointing to Pacific Coast News. How-to-Detect Inbound Search Traffic: To determine whether or not a visitor came directly from the result page of a search engine, you can examine the referer [sic] header of the HTTP request. The HTTP Referrer header value will contain the URL of the search results page that sent the visitor to your site. Within this URL, there is usually a request parameter with a short name like q that indicates what search query the visitor used when querying the search engine. Example HTTP Referrer:
The presence of google.com indicates that the search came from Google while the decoded value of the q request parameter is miley cyrus which is the visitor's search query. Different search engines use different request parameters to indicate the search query, but you can easily build a set of rules and/or regular expressions that cover the most common search engines. Example Rules (these rules may change):
How-to-Build Related Keywords: There are many ways of generating the list of related keywords*. One way is to leverage a freely available API offered by Yahoo! Search BOSS. This API allows you to pass in a visitor's search query as input and get back a set of related keywords as output. Read the Getting Started guide for an overview on how to use the API. In short, you need to formulate a request containing the search query and specify that you want the keyterms view. Here is an example which sends the search query, miley cyrus, along with instructions to receive 10 results in JSON format: http://boss.yahooapis.com/ysearch/web/v1/miley+cyrus?format=json&view=keyterms&count=10&appid=<your app ID> The resulting JSON will contain related keywords inside the ysearchresponse/resultset_web/keyterms/terms element. * Test the relevance of the keywords returned by visiting Keywordfinder.org, which uses this method. Integrating with BEDROCK: Once you have a list of related keywords, hyper-link each keyword to BEDROCK by sending a visit. The keyword clicks will be sent to BEDROCK and redirected to buyers. You will earn money on a cost per visit basis. |
