If, like me, you are looking to integrate bbclone within an web application developed using the cakephp framework, here is the rundown. It may save you from having to search through the whole thing yourself.

go into the webroot directory, open the index.php, and add the tracking code in it, on top of the file, before the rest of the php code…

[PHP]

// STATS COUNTER

define(“_BBC_PAGE_NAME”, $_GET[‘url’]);
define(“_BBCLONE_DIR”, $_SERVER[‘DOCUMENT_ROOT’]. “/_stats/”);
define(“COUNTER”, _BBCLONE_DIR . “mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
[/PHP]

That’s all folks :)