Regardless of how segments are booked (one way, roundtrip, multi-city, etc) each segment posts individually, and each segment counts.
The bonus posts within the qualifying segment. For example:

(This was booked as a Blue Plus fare, which is why the Online Bonus doesn't match the base points)