The Galaxy opened the scoring in the 16th minute when Magee capitalized on a scramble in the box to send home his third goal of the season past Whitecaps goalkeeper Joe Cannon.
After spending the early part of the season mired near the bottom of the league, the win may signify a turning point for the defending MLS champions.
''It's been a good week. If someone would have said we would have gotten nine points from the games we were playing in six days it would have been nice but obviously it would have been difficult but we've done it,'' star David Beckham said.
''Vancouver is a good team, they're a quick team but the first-half performance killed them off completely. We didn't pass the ball as well in the second half like we did in the first half but it's a great week for us.''
Making his first appearance for the Galaxy (6-8-2) since returning from Euro 2012 duty with Ireland, Keane went through the Whitecaps defense and doubled the Galaxy's lead in the 30th minute.
After his goal, Keane held up a shirt that read ''RIP James Nolan'' paying tribute to a 21-year-old Irish fan, who died of an apparent accidental drowning while in Poland to follow Keane and the Ireland national team at the European Championships.
''It was just a gesture because the Irish people are very close and they stick with each other through good times and bad times,'' Keane said. ''He was a big, big soccer fan and it was a shame so it was just a show of respect really.''
Keane helped create the third goal in the 40th minute as well when he fired a shot in the box into the hand of Jay Demerit setting up a penalty kick that was converted by Donovan.
After watching his team get blanked by the Galaxy, Vancouver coach Martin Rennie was full of praise for Los Angeles.
''The movement of Keane and Donovan, my opinion was like world class. Their movement was fantastic. They caused so many problems with the way they came out at the backline,'' Rennie said.
''Tonight I think they were really on form and their midfield's passing and movement was very good as well. We happened to find them on a good night and they punished us.''
Vancouver fell to 7-4-5 on the season.
Donovan was pleased with his team's successful run.
''A great week, a great end to the week. I think we deserved what we got tonight because we put in a lot of work in the last few weeks,'' Donovan said. ''It was nice to get rewarded for that.''
- Vancouver Whitecaps
- Los Angeles Galaxy
- Landon Donovan
- Robbie Keane