Dirt on glass is black instead of colored, or no opacity at all

Not really knowledgeable on that. Might be possible in one shader, or you might need two pieces of glass?..