Only revenue through UAL counts towards GS status. Tickets must be on UA stock. Code share has no relevance towards GS status, not even Lufthansa. I qualified as GS when spending over $42K with over half of my purchases being B fare or higher. GS is about revenue with UAL.