Strava will sync it if you keep it as one activity. I pause my Strava if I stop for a rest, then start it again to keep going. Or you can manually upload it as one full activity.
Does it matter how long it takes, as long as it was run /walked in one day. For example could you walk half take a break for lunch and walk back if doing the gold challenge ?