Filter tags tracking custom dimension with Google Analytics

Since SEOPress 2.6

function sp_gtag_cd_tags_cf($html) {
return "'dimension3': 'cd_tags',";
}
add_filter('seopress_gtag_cd_tags_cf', 'sp_gtag_cd_tags_cf');

function sp_gtag_cd_tags_ev($html) { 
return "gtag('event', '".__('Tags','wp-seopress')."', {'cd_tags': '".$get_tags."'});"; 
} 
add_filter('seopress_gtag_cd_tags_ev', 'sp_gtag_cd_tags_ev');