Cut the outward and homeward journeys independently.
Picture a rider who leaves home, joins a riverside trail at a public car park and returns home by another road. To share the riverside ride, make a working copy and crop its beginning to the car park. Follow the track backwards from the finish and choose an appropriate public endpoint there too. A symmetrical distance trim can fail if the return approaches the house from another direction.
Now trace the whole remaining line. Some routes pass home again for lunch before heading out for a second loop. Cropping only the first and last points preserves the middle visit. In that case split the outing and share only the public section you actually want someone else to follow. Leave disconnected sections separate so the editor cannot draw a line across the omitted area.
Open the finished copy as a recipient would.
Export under a new name, open it in a fresh viewer, and zoom out to include every object. An unexpected pin far from the visible ride can be easier to see at this scale. Then zoom in at both endpoints. If a file viewer hides objects by default, inspect the GPX text or another editor that lists them. Search for familiar private labels as an additional check.
For beacen-hosted pages, read the share-link privacy details. Keep the original recording for your own records. Check filenames immediately before attaching or uploading the shared copy. A public starting point can reduce what one outing discloses, but several tracks radiating from the same neighbourhood may still suggest where a person lives. Choose what to publish in light of the collection as well as the individual file.
Sources & scope
What this answer is based on.
The GPX 1.1 schema identifies the independent track, waypoint, time and metadata fields. gpx.studio documents the crop operation. The example uses invented labels.