How to insert a JS code snippet before the end of the head tag?

How do I add JS code snippet before the end of the head tag on my website?> > Thanks

Hi @Footastic ,

This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Layout->/theme.liquid->paste below code before :

I hope it would help you
Best regards,

Richard | PageFly