Double opt-in is a two-step sign-up procedure, usually for newsletters: after registering, the person receives an email with a confirmation link, and the address is used for marketing only after the click. This shows that consent actually comes from the holder of the address.
Under GDPR Art. 7(1), the controller must be able to demonstrate consent, and in Germany Section 7 of the Act against Unfair Competition (UWG) requires prior express consent for email marketing. The records therefore include the times of registration and confirmation, the IP address and the version of the consent text. The confirmation email itself contains no advertising (A.1.2.5 Obtain and record consent).