formatFields function

Format tracking data