Voyager's Golden record was recorded in an analog way. Its lifespan perhaps 1 billion years.
Let's say that I would like to send an spacecraft with information recorded in digital. Which alternatives I have to record information avoiding data loss or corruption? Optical discs are discarded, because lifespan is limited to 10 or 20 years. Magnetic, well.. you know how unreliable were and also limited lifespan.