An apparatus is disclosed, comprising a detector unit comprising a detector configured to detect an actuation action performable via the detector unit to an actuation button of a medical device to cause the medical device to eject at least a portion of a medicament comprised in the medical device. The detector is configured to detect the actuation action based on a detection of a force and/or a touch applied to the detector unit as part of the actuation action. The apparatus further comprises an electric unit connected to the detector and configured to store and/or provide information related to the detected actuation action. Furthermore, an according method and a computer program for controlling this method are disclosed.