The Statistics module doesn't use any hook because generally works when Drupal has not completed its bootstrap phase. (That is if caching pages is enabled.)
What you can do is creating a custom module that runs right after the Statistics module, and execute code similar to the following one.
function mymodule_exit() {
global $user;
drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES);
$is_node = (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == NULL);
if (variable_get('statistics_count_content_views', 0) && $is_node) {
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$node = node_load(arg(1));
if (!$node->status) {
db_merge('node_counter')
->key(array('nid' => $node->nid))
->fields(array(
'daycount' => 1,
'totalcount' => 1,
'timestamp' => REQUEST_TIME,
))
->expression('daycount', 'daycount - 1')
->expression('totalcount', 'totalcount - 1')
->execute();
}
}
if (variable_get('statistics_enable_access_log', 0) && $is_node) {
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$node = node_load(arg(1));
if (!$node->status) {
db_delete('accesslog')
->condition('title' => truncate_utf8(strip_tags(drupal_get_title()), 255))
->condition('path' => truncate_utf8($_GET['q'], 255))
->condition('url' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')
->condition('hostname' => ip_address())
->condition('uid' => $user->uid)
->condition('sid' => session_id())
->condition('timestamp' => REQUEST_TIME)
->execute();
}
}
}