MS Clarity Exclude Logged In Users
Only executes the script for visitors. Prevents script from executing while logged in as Author or above so it will still run for WooCommerce customers.
How to Use
Download > Install > Activate. Use your favorite IDE or just edit within the WordPress plugin editor. Change "xxxxxxxxxx" to be your Clarity ID. Not associated with Microsoft® Clarity®
This prevented me from recording all my logged in back-end work.
This code can be pasted into the functions.php file of your child theme or, download and install the plugin for simple code activation.