The Hammers got off to the perfect start in Group H, beating Dinamo Zagreb 2-0 at the Stadion Maksimir.