They go the first way you described, in parallel across the power and ground. If you wired it in series, all you'd get out of it would be AC and none of your electronics would work.