Black hole (BH) mergers driven by gravitational perturbations of external companions constitute an important class of formation channels for merging BH binaries detected by LIGO. We have studied the orbital and spin evolution of binary BHs in triple systems, where the tertiary companion excites large eccentricity in the inner binary through Lidov-Kozai oscillations, causing the binary to merge via gravitational radiation. Using the single-averaged and double-averaged secular dynamics of triples (where the equations of motion are averaged over the inner orbit and both orbits, respectively), we perform a large set of numerical integrations to determine the merger window (the range of companion inclinations that allows the inner binary to merge within ∼10 Gyrs) and the merger fraction as a function of various system parameters (e.g., the binary masses m 1 , m 2 and initial semi-major axis a 0 , the mass, semi-major axis and eccentricity e out of the outer companion). For typical BH binaries (m 1,2 20M − 30M and a 0 10 AU), the merger fraction increases rapidly with e out because of the octupole perturbation, ranging from ∼ 1% at e out = 0 to 10 − 20% at e out = 0.9. We derive the analytical expressions and approximate scaling relations for the merger window and merger fraction for systems with negligible octupole effect, and apply them to neutron star binary mergers in triples. We also follow the spin evolution of the BHs during the companion-induced orbital decay, where de-Sitter spin precession competes with Lidov-Kozai orbital precession/nutation. Starting from aligned spin axes (relative to the orbital angular momentum axis), a wide range of final spin-orbit misalignment angle θ f sl can be generated when the binary enters the LIGO sensitivity band. For systems where the octupole effect is small (such as those with m 1 m 2 or e out ∼ 0), the distribution of θ f sl peaks around 90 • . As the octuple effect increases, a more isotropic distribution of final spin axis is produced. Overall, merging BH binaries produced by Lidov-Kozai oscillations in triples exhibit a unique distribution of the effective (mass-weighted) spin parameter χ eff ; this may be used to distinguish this formation channel from other dynamical channels.