Be very careful with Lufthansa intra-Europe flights, as most cheap fares do not earn points, Aeroplan, or United or even LH's Miles&More. I noticed that many Lufthansa flights to US and Canada do not earn miles.
United.com booking actually shows for those United-Lufthansa code shared but operated flights, which may give you zero miles.
Expedia booking also shows booking class now, and you just need to double check Aeroplan fare class - Aeroplan eligibility in Aeroplan.
Also your Lufthansa boarding passes usually show the booking class, then you know if you should expect any mileage, but it might be late, if you want to earn miles.
The short message is that Lufthansa has trimmed mileage earnings badly in recent years.