Yes, GPS tracking is legal. Additionally, the GPS tracker installed in your vehicle can act as an aid for lodging an FIR and claiming insurance in case your vehicle gets stolen.