score:2
Since you booked through United, and flights are with their Star Alliance partners, all the mileage for all legs should be automatically credited to the same account you gave for the United flights. Save your boarding passes and check after the trip, but this is how it is supposed to work. I wouldn't worry about it until then.