# Need help: Integrating HTML code snippet of "2 Chat" floating button into a page in my app

**URL:** <https://community.glideapps.com/t/need-help-integrating-html-code-snippet-of-2-chat-floating-button-into-a-page-in-my-app/77278>\
**Category:** Ask for Help\
**Created:** [October 24, 2024, 5:25am UTC](https://community.glideapps.com/t/need-help-integrating-html-code-snippet-of-2-chat-floating-button-into-a-page-in-my-app/77278 "2024-10-24T05:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [October 24, 2024, 5:25am UTC](https://community.glideapps.com/t/need-help-integrating-html-code-snippet-of-2-chat-floating-button-into-a-page-in-my-app/77278/1 "2024-10-24T05:25:54Z")

</div>

Hi Guys,

I am using a chat button which is a floating button in my app. As I need to have the HTML which gives the floating button which connects to my what’s app chat,

I need help or guidance on how can I integrate this code in my app?

```auto

<script>
    window._2chatConfig = {
    phoneNumber:'+XXXXX',
    accountName: `Welcome!`,
    statusMessage: `We typically reply within 1 hour`,
    chatMessage: `Hey there! 👋
How can we help you?`,
    placeholder: 'Type your message...',
    position: 'right',
    colorScheme: 'automatic',
    showNotification: true,
  };

  (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return; 
    js = d.createElement(s); js.id = id;
    js.src = 'https://widgets.2chat.io/index.js';
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', '_2chat'));
</script>

```

Thank you for your help.

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [October 24, 2024, 6:51am UTC](https://community.glideapps.com/t/need-help-integrating-html-code-snippet-of-2-chat-floating-button-into-a-page-in-my-app/77278/2 "2024-10-24T06:51:53Z")

</div>

I tried hosting the code in Git hub and embedding it on web view.

I am able to get chat button.

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [October 31, 2024, 6:52am UTC](https://community.glideapps.com/t/need-help-integrating-html-code-snippet-of-2-chat-floating-button-into-a-page-in-my-app/77278/3 "2024-10-31T06:52:12Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
