A device tracking detection method, applied to a first electronic device, wherein the first electronic device comprises a target module, and the target module is configured to cache location information of a location at which the first electronic device is located, and the method comprises: obtaining, by the first electronic device, location information from the target module and recording the obtained location information as location information of the first electronic device, wherein a set of the location information of the first electronic device is first trajectory information; obtaining, by the first electronic device, location information from the target module when a first Bluetooth signal is received based on a first signal filter; recording, by the first electronic device, the location information obtained at a time when the first Bluetooth signal is received, as location information of a first Bluetooth peripheral, wherein a set of the location information of the first Bluetooth peripheral is second trajectory information; determining, by the first electronic device, whether it is in a target state, wherein the target state is a state in which a moving speed is greater than a preset speed threshold; obtaining, by the first electronic device when in the target state, location information within a second duration from the first trajectory information, wherein the second duration is terminated at a time when the first electronic device receives the first Bluetooth signal, and the second duration is a period duration during which the first Bluetooth peripheral broadcasts the first Bluetooth signal; inserting, by the first electronic device, the location information obtained within the second duration into the second trajectory information to update the second trajectory information; and alerting, by the first electronic device when similarity between the first trajectory information and the updated second trajectory information is greater than a preset similarity threshold, a user of being tracked by the first Bluetooth peripheral. obtaining, by the first electronic device, location information from the target module and recording the obtained location information as location information of the first electronic device, wherein a set of the location information of the first electronic device is first trajectory information; obtaining, by the first electronic device, location information from the target module when a first Bluetooth signal is received based on a first signal filter; recording, by the first electronic device, the location information obtained at a time when the first Bluetooth signal is received, as location information of a first Bluetooth peripheral, wherein a set of the location information of the first Bluetooth peripheral is second trajectory information; determining, by the first electronic device, whether it is in a target state, wherein the target state is a state in which a moving speed is greater than a preset speed threshold; obtaining, by the first electronic device when in the target state, location information within a second duration from the first trajectory information, wherein the second duration is terminated at a time when the first electronic device receives the first Bluetooth signal, and the second duration is a period duration during which the first Bluetooth peripheral broadcasts the first Bluetooth signal; inserting, by the first electronic device, the location information obtained within the second duration into the second trajectory information to update the second trajectory information; and alerting, by the first electronic device when similarity between the first trajectory information and the updated second trajectory information is greater than a preset similarity threshold, a user of being tracked by the first Bluetooth peripheral.