Exterior foundation drain pipe location relative to the footer
You can install your drainpipe on your footing or next to it, but the critical issue is that it is BELOW your basement slab.
Drainpipe systems are designed to capture ground water leaking down from storm water, downspouts, etc. AND from a rising watertable.
Ideally the 4” perf pipe should be encased in about 12” to 18” envelope of drainrock and protected with a filter fabric wrapped around the drainrock envelope. (This fabric will keep the soil from flowing int the perf pipe and plugging it again.) In addition the basement wall should have a waterproofing (mastic) applied to it and then cover the mastic with a mesh that protects the mastic when you backfill and allows water to “flow” down the surface of the wall and directly into the perf pipe. (Make sure the mesh extends into the drainrock envelope.)
We like the bottom of the perf pipe to be about 4”-6” below the bottom of the basement slab.
You say your pipe daylights, which is good. Make sure it flows down and do not tie downspouts into it, because it could overflow the system and backup to your basement wall.