Filter logged in users tracking custom dimension with Google Analytics

Since SEOPress 2.6

function sp_gtag_cd_logged_in_cf($html) {
return "'dimension5': 'cd_logged_in',";
}
add_filter('seopress_gtag_cd_logged_in_cf', 'sp_gtag_cd_logged_in_cf');

function sp_gtag_cd_logged_in_ev($html) { 
return "gtag('event', '".__('Connected users','wp-seopress')."', {'cd_logged_in': '".wp_get_current_user()->ID."'});"; 
}
add_filter('seopress_gtag_cd_logged_in_ev', 'sp_gtag_cd_logged_in_ev');