Rather than directly showing a page, configure a microflow in the navigation for the home page settings. That microflow can do the actions you need and then show a page.
Be careful when configuring the same microflow for multiple roles as this could cause weird security errors. In that case, create a microflow for each role, from each call another microflow that does the after login stuff you need and then show the page specific for that role.