Measurement before media. Every time, without exception, because a campaign optimising on a broken signal gets worse the more you spend.
The order matters: taxonomy first, then server-side events, then consent, then the dashboard that has to match finance. Doing it in any other order means redoing it.