Getting the Magento layout handle for a page

To get the current layout handle for a particular page in Magento just place the below code in a template file your page is using.

echo var_dump(Mage::app()->getLayout()->getUpdate()->getHandles());exit;

If you’re using xDebug just leave out echo.