A method produces a marker element, which is composed of two radiopaque layers and an interposed adhesive layer. The marker element is heated and joined into the eyelet of a stent. The introduction of the mechanical force causes the two layers of the marker element to be compressed, whereby the available volume is reduced for the softened adhesive of the adhesive layer. Consequently, the softened adhesive from the adhesive layer is pushed out of the side of the marker element, so that the adhesive flows into the empty volume of the adhesive gap between the marker element and the inner edge of the eyelet of the scaffold and bonds to the inner edge of the eyelet.