Yes, this should be possible. We had done this while using tawk.to by adding a script they provided to the head section
I hope you were able to find the solution.
If not, Happy Chat can help you out.
The app is available for free on Shopify App Store.
With this app, you can:
Provide Instant Customer Support with Live Whatsapp Chat
Customize chat widget easily as per your branding
Super easy to add multiple agents for customer support
Know what page your visitor is coming from
Hide or show per page
Get detailed analytics
Hope this helps.
Feel free to ask your Qs if any.