Hi, Iโm integrating a brevo Chat within my app, with Google tag manager.
Once i integrated the basic script, it appears as intended.
Now i would like to modify this chat windows. Brevo shares some documentation on how to, it mainly rely on integrating HTML code on the app.
one customisation interests me a lot with Open the widget by clicking on a button
HTML
<!-- Custom button anywhere on the page -->
<button onclick="BrevoConversations('openChat', true)">Chat with us</button>
Or you can create a link with the address #brevoConversationsExpanded
:
HTML
<!-- Link anywhere on the page -->
<a href="#brevoConversationsExpanded">Chat with us</a>
Also, you can use any valid CSS selector as the customWidgetButton
to assign the chat button behavior to the element of your choice (this will also hide the default chat button). The first step is to place the following snippet before the main widget code:
HTML
*<script>*
* window.BrevoConversationsSetup = {*
* customWidgetButton: '.custom-chat-button'*
*};*
*</script>*
<!-- Brevo Conversations widget code -->
Then add this selector to any element on the page:
HTML
* *<!-- Custom button anywhere on the page -->* *<button class="custom-chat-button">Chat with us</button>* *
Blockquote
The answer is maybe simple but where should I implement on my app, where do I find the CSS selector of a specific button i already designed on my page.