Head script not running on member pages

Hi, I added a head script to a member page and a non-member page, and it works on the non-member page, but it doesn’t work on the member page. I did this using the Custom Code settings and used a super basic script (see beolw). The code was not run when I loaded the member page but it was run when I loaded the non-member page. Does anyone know why the head script doesn’t run on member pages?