SALINAS, Calif.—The movement to ban fracking is winning victories across the U.S. Yet the campaign has largely failed to win where it matters most—in places oil and natural gas are produced.

A Nov. 8 ballot measure will test that pattern in Monterey County, famed for its farms and scenic coastline.

...