How can I enable Shopify Chat with Google Tag Manager?

Hi,

We have a headless solution and would like to use Shopify Chat.

How can I enable it using Google Tag Manager?

Best
Robert

Or basically, using Shopify Chat outside Themes.