Installing chat through Google Tag Manager

How to add the chat through Google Tag Manager?

After logging into your account in Google Tag Manager, go to Tags (1) and click New (2):

Google Tag Manager

In the tag configuration, choose Custom HTML (3):

Google Tag Menager

Paste chater code (4),

<script>window.$czater = {tok: "Your_chater_ID", domain: "", login: undefined, email: undefined};</script><script>src="" async></script>

and choose All pages (5) in the rules:

Google Tag Menager

At the end, save changes and change the name of the tag. Then, click Send (6):

Google Tag Menager

Fill out the name and description of the version and click Publish (7):

Google Tag Menager