Tag metadata detection