How to properly tuck in a 12 doorbell chime?

Surprisingly 100% of the results point to non existing or paywalled pages :expressionless: but at least I understood that optocoupler may be the way to go. Thanks!