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…
// STATS COUNTER
define(“_BBCLONE_DIR”, $_SERVER[‘DOCUMENT_ROOT’]. “/_stats/”);
define(“COUNTER”, _BBCLONE_DIR . “mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
That’s all folks :)