To add code to Shop Page Header Injection, you can do these.
#1. First, open Shop Page > Click on Gear icon
#2. Next, click Advanced > Page Header Code Injection
#3. Paste code to right box