Magenta line
This is a GPS question and has nothing to do with drift. The magenta line is your track over the ground. It's that simple. The heading on the compass/DG will change as you pass through the front but provided you stay on the line, your track remains the same. It's a good idea to always keep an eye on the compass/DG heading so if the GPS dies, you have a reference to maintain track.