The invention relates to a sensor element (110) for detecting at least oneanalyte ina body fluid or in a body tissue (130), particularly for determining at leastonemetabolite concentration in a body fluid. The sensor element (110) comprisesanimplantable, one-piece shaped body (112), which comprises a sensor end (114)anda coupling end (116). The shaped body (112) comprises, in the area of thesensorend (114), at least one sensor area (118), which comprises at least one sensormaterial (122). The sensor material (122) changes at least one opticallymeasurableproperty in the presence of the analyte. The shaped body (112) also has atleast oneoptically transparent coupling part (120), which is designed to transmitelectromagnetic radiation in at least one spectral range between the sensorarea(118) and the coupling end (116). In the sensor area (118), the shaped body(112)has at least one optically transparent matrix material (124), and the analytecan atleast partially diffuse through the matrix material (124) to the sensormaterial(122). The sensor material (122) is embedded in the matrix material (124). Thecoupling part (120) is formed at least partially by the matrix material (124).