electro acoustic expressionism
nodepet
January 6th, 2008

Tracking entire search phrases with BBClone

Filed under: Howto — olliver @ 21:34 h

Those of you who run Google Adwords would of course like to know their strongest phrases they can build their campaign upon. BBClone, per default, however lists single keywords, something that is useful for tweaking one’s meta headers so they contain only words people use to find one’s site. But when it comes to the higher spheres of SEO, tracking entire phrases like electro acoustic expressionism would be of advantage. This can be accomplished via a relatively simple, yet effective hack that helps you optimise your Adwords to gain competitive edge and increase your revenue.

Look for the file log_processor.php in your BBClone directory and go to line 230:

// Search engine keywords in detailed stats
$flt_search = bbc_get_keywords($connect['referer'], $char);
$last['traffic'][$old_cnt]['search'] = ($flt_search !== false) ?
                           implode(" ", $flt_search) : "-";

// Search engine keywords in global stats
if ($flt_search !== false) bbc_update_key_stats($flt_search);

This is what the original should look like. Now replace this part with the following code (you can use the comments as orientation guides):

// Search engine keywords in detailed stats
$flt_search = bbc_get_keywords($connect['referer'], $char);
$last['traffic'][$old_cnt]['search'] = ($flt_search !== false) ?
         str_replace("-", " ", implode(" ", $flt_search)) : "-";

// Search engine keywords in global stats
$query = $last['traffic'][$old_cnt]['search'];
if ($query != "-") {
  $access['key'][$query] = !isset($access['key'][$query]) ? 1 :
                           ++$access['key'][$query];
}

And voila, from now on BBClone will display entire phrases on the global statistics page and help you use ad campaigns more effectively.

Comments (2)

2 Comments »

  1. Hello Olliver,

    thanks for this very usefull hack !

    Comment by françois — January 8th, 2008 @ 15:58 h
  2. Hi François,
    glad to be of service to you :-).

    Olliver

    Comment by olliver — January 8th, 2008 @ 16:58 h

Leave a comment

Posting comments requires Javascript to be turned on.