A device tracking detection method, applied to a first electronic device (100, 1503), wherein the method comprises: receiving, by the first electronic device (100, 1503), a first Bluetooth signal through a first signal filter, wherein the first signal filter is configured to receive the first Bluetooth signal; storing, by the first electronic device (100, 1503), scanning records of a first type when the first electronic device (100, 1503) detects the first Bluetooth signal, wherein there is a correspondence between the scanning records of the first type and a physical address carried in the first Bluetooth signal; storing scanning records of a second type when the first electronic device detects that a moving state has changed and there are the scanning records of the first type within a previous preset duration, where there is a correspondence between the scanning records of the second type and the physical address carried in the first Bluetooth signal; and outputting, by the first electronic device (100, 1503), alert information for alerting a user of being tracked by a Bluetooth peripheral (300, 1501, 1502) when a quantity of scanning records of the second type corresponding to the physical address is greater than a first threshold; wherein the outputting, by the first electronic device (100, 1503), alert information for alerting a user of being tracked by a Bluetooth peripheral (300, 1501, 1502) when a quantity of scanning records of the second type corresponding to the physical address is greater than a first threshold comprises: identifying whether a distance indicated in a set of location information comprised in the second data table is greater than a preset distance threshold; when the distance is greater than the preset distance threshold, identifying whether a duration indicated in a set of times comprised in the second data table is greater than a preset duration threshold; when the duration is greater than the preset duration threshold, identifying whether the quantity of scanning records of the second type in the second data table is greater than the first threshold; and when the quantity is greater than the first threshold, outputting, by the first electronic device (100, 1503), alert information for alerting the user of being tracked by the Bluetooth peripheral (300, 1501, 1502). receiving, by the first electronic device (100, 1503), a first Bluetooth signal through a first signal filter, wherein the first signal filter is configured to receive the first Bluetooth signal; storing, by the first electronic device (100, 1503), scanning records of a first type when the first electronic device (100, 1503) detects the first Bluetooth signal, wherein there is a correspondence between the scanning records of the first type and a physical address carried in the first Bluetooth signal; storing scanning records of a second type when the first electronic device detects that a moving state has changed and there are the scanning records of the first type within a previous preset duration, where there is a correspondence between the scanning records of the second type and the physical address carried in the first Bluetooth signal; and outputting, by the first electronic device (100, 1503), alert information for alerting a user of being tracked by a Bluetooth peripheral (300, 1501, 1502) when a quantity of scanning records of the second type corresponding to the physical address is greater than a first threshold; wherein the outputting, by the first electronic device (100, 1503), alert information for alerting a user of being tracked by a Bluetooth peripheral (300, 1501, 1502) when a quantity of scanning records of the second type corresponding to the physical address is greater than a first threshold comprises: identifying whether a distance indicated in a set of location information comprised in the second data table is greater than a preset distance threshold; when the distance is greater than the preset distance threshold, identifying whether a duration indicated in a set of times comprised in the second data table is greater than a preset duration threshold; when the duration is greater than the preset duration threshold, identifying whether the quantity of scanning records of the second type in the second data table is greater than the first threshold; and when the quantity is greater than the first threshold, outputting, by the first electronic device (100, 1503), alert information for alerting the user of being tracked by the Bluetooth peripheral (300, 1501, 1502). identifying whether a distance indicated in a set of location information comprised in the second data table is greater than a preset distance threshold; when the distance is greater than the preset distance threshold, identifying whether a duration indicated in a set of times comprised in the second data table is greater than a preset duration threshold; when the duration is greater than the preset duration threshold, identifying whether the quantity of scanning records of the second type in the second data table is greater than the first threshold; and when the quantity is greater than the first threshold, outputting, by the first electronic device (100, 1503), alert information for alerting the user of being tracked by the Bluetooth peripheral (300, 1501, 1502).