Try to use common code for tagMetrics and injectTags from class above