McNemar test
Has a yes-no characteristic changed in the same people? The McNemar test looks only at the people who switched, and checks whether switches in one direction are more common than in the other.
Example: 60 people before and after an intervention: 12 switch from yes to no, 4 from no to yes. χ² = 3.06 (with continuity correction), p = 0.080; exact p = 0.077.
Caution: The people who stayed the same (here 20 and 24) do not enter. With few switchers the exact test is usually preferred.