Hello, Magento Buddies!!
Controller classes are responsible for a particular URL or group of URLs. You may want to call a custom controller when any URL on a website is hit. Deep dive into How to Call Controller when hitting any URL from Website in Magento 2?
Complete Tutorial at How to Call Controller when hit any URL from Website in Magento 2?