Set a boolean to true when the dashboard loads

I’d like to run an automation when someone loads the home assistant dashboard. Just wondering if there is a way to set a boolean to true when the main dashboard is loaded. I was unable to find anything specific when searching, so if anyone can point me in the right direction it would be appreciated.