You can prevent tracking by disabling GPS and Wi-Fi and ensuring your iPhone's software is up-to-date with the latest security measures.