Update:
To assist you (and the community), I developed the code snippet provided below to solve the above. Add it to your functions.php file via the plugin, Code Snippets. Set the the code snippet to run only on the frontend.
Result: Click here
It would be great if you can incorporate the intent of the code snippet into your plugin at your next convenient plugin revision.
Thank you!
—————
Code Snippet: (Add Plugin Logo to Admin Toolbar – Frontend)
function override_admin_toolbar_analytify() {
if ( is_admin_bar_showing() ) { ?>
<style type="text/css">
#wp-admin-bar-analytify > .ab-item::before {
content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo.png);
margin-top: .1em!important;
margin-right: .05em!important;
}
#wp-admin-bar-analytify:hover > .ab-item::before {
content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo-blue.png);
margin-top: .1em!important;
margin-right: .05em!important;
}
</style>
<?php }
}
add_action( 'wp_head', 'override_admin_toolbar_analytify', 20, 3 );