Second Page Poaching Part 2: Data Collection Code Snippets

Below is a basic beacon-receiver method for collecting the Second Page Poaching data. You could, of course, simply include the PHP directly on your page and handle the entire thing internally. This method, while a little more exposed, would allow you to develop one system to crunch numbers and do the rank-checking remotely, so as not to disturb the machines dedicated to page-serving. The Javascript Include The simple Javascript Include determines whether or not the visitor to your page has come from the 2nd page of a Google search result and, if so, generates a 1px by 1px image that is actually a beacon calling a piece of PHP. The PHP Receiver The beacon code is quite simple. It strips out the query from the Google search result in the original page referrer. It...