You could save the last X pageviews in magento registry by putting something like this into some PHP code which is executed each time.
$urlHistory = (array) Mage::getSingleton('core/session')->getMyUrlHistory();
while (is_array($urlHistory) && count($urlHistory) > 3) {
array_shift($urlHistory);
}
$urlHistory[] = Mage::helper('core/url')->getCurrentUrl();
Mage::getSingleton('core/session')->setMyUrlHistory($urlHistory);
You can then analyse Mage::getSingleton('core/session')->getMyUrlHistory()
within your observer.