Thanks!
While you work on it, here an other suggestion:
– Sometimes it is best not to include the GTM at all, e.g. if you use a visual builder. Maybe an option to exclude logged in users from integrating the script would be nice?
– A bit more advanced feature would be to exclude other things in javascript, like Google Page Speed. Something like:
if(navigator.userAgent.indexOf("Speed Insights") == -1) and (!dataLayer.user.isLoggedIn)
{ /* analytics here */ }
(Just an idea…)