UA only counts BIS (butt in seat) on United metal for lifetime miles
https://www.united.com/ual/en/us/fly.../lifetime.html
Lifetime miles are earned based on the flight distance* of United- and United Express®-operated flights
For yearly status, non-United flights would count towards PQM for that year (and I assume you have pqd waived, or enough to qualify for pqd)