Rotating electrical machine having a support and comprising: - a stator fixedly mounted with respect to the support, - a rotor mounted on a hub that rotates with respect to an axis (X) of the machine, said rotor being configured to emit an operating magnetic flux intended to interact with said stator , - a device for tracking an angular position of said rotor , comprising: - a target assembly comprising a target linked in rotation with said rotor , and - at least one detection assembly comprising a sensor , said sensor being configured to pick up the magnetic flux emitted by said target , said hub being interposed between the operating magnetic flux emitted by the rotor and the magnetic flux emitted by the target such that it allows a magnetic shield insulating the sensor from the operating flux , characterized in that : said target assembly is fixed on a concave face of said hub such that an inner face of the target is turned towards the axis and in that said detection assembly further comprises a sensor-holder to which the sensor is fixed, said sensor-holder being fixed to the support and extending radially between an outer position and an inner position, said inner position being closer to the axis than the target such that the sensor faces said inner face of the target . - a stator fixedly mounted with respect to the support, - a rotor mounted on a hub that rotates with respect to an axis (X) of the machine, said rotor being configured to emit an operating magnetic flux intended to interact with said stator , - a device for tracking an angular position of said rotor , - a target assembly comprising a target linked in rotation with said rotor , and - at least one detection assembly comprising a sensor , said sensor being configured to pick up the magnetic flux emitted by said target , said hub being interposed between the operating magnetic flux emitted by the rotor and the magnetic flux emitted by the target such that it allows a magnetic shield insulating the sensor from the operating flux , characterized in that : said target assembly is fixed on a concave face of said hub such that an inner face of the target is turned towards the axis and in that said detection assembly further comprises a sensor-holder to which the sensor is fixed, said sensor-holder being fixed to the support and extending radially between an outer position and an inner position, said inner position being closer to the axis than the target such that the sensor faces said inner face of the target . said hub being interposed between the operating magnetic flux emitted by the rotor and the magnetic flux emitted by the target such that it allows a magnetic shield insulating the sensor from the operating flux , characterized in that : said target assembly is fixed on a concave face of said hub such that an inner face of the target is turned towards the axis and in that said detection assembly further comprises a sensor-holder to which the sensor is fixed, said sensor-holder being fixed to the support and extending radially between an outer position and an inner position, said inner position being closer to the axis than the target such that the sensor faces said inner face of the target . said target assembly is fixed on a concave face of said hub such that an inner face of the target is turned towards the axis and in that said detection assembly further comprises a sensor-holder to which the sensor is fixed, said sensor-holder being fixed to the support and extending radially between an outer position and an inner position, said inner position being closer to the axis than the target such that the sensor faces said inner face of the target . <EOS>