It involves coding. If you are familure with HTML,CSS and PHP then it will easy for you to create a opt-in header. However you can use a plugin like WP Subscriber which can add it for you.
It would be much better if someone share some video tutorial regarding this matter as i am also looking for an answer to a similar question like this for quite some time now.But haven't found anything that really covers this topic greatly.