This does not look right; the event won’t be invoked unless track_visitors is 1? There’s already an event for dealing with this status, OnLogPageHit (line 1105).
// Useful for example to external page counters/stats packages
if ($this->config['track_visitors'] == 1) {
$this->invokeEvent('OnWebPageComplete');
}
// end post processing
}
This is at the end of the postProcess function, on line 617.