Skip to content
English - United States
  • There are no suggestions because the search field is empty.

How to add the chat to a pop-up button using triggers

The CSS trigger is a new way to customize when the Leadster chat appears on your website, based on visual elements of the page — such as buttons, sections, or specific layout components.

This setup is ideal when you want to show the chat only when a visitor interacts with a certain element — for example, clicking a “Talk to an expert” button, opening a modal, or scrolling to a specific section.


How to set up the CSS trigger

  1. Open the Leadster panel and go to the Gerenciar Fluxos (Manage Flows) menu.
  2. Choose the flow you want to edit and click Step 2: “Personalize para seu público” (Personalize for your audience)
  3. Scroll down until you find the “Acionadores do Chat" (Chat Triggers) section and choose the "Clique em botão/elemento da página" (Click on a page button/element) option.

  1. In the selector field, enter the CSS element that should trigger the chat.
    • Example: .botao-contato      or #fale-conosco     
  2. Choose whether the trigger fires on click or when the element is visible on screen.
  3. Save your changes.

To make sure the selector works correctly:

  • Check that the element is present on every page where the chat should appear.
  • Use a unique selector (an ID or a unique class).
  • Test the trigger by visiting your website and interacting with the element you set.

How to set it up on an RD Station landing page

1. Find the button's CSS selector

  1. In the RD editor, click the button you want.
  2. In the right panel, check the button's ID or Class (example: .rd-button     or #rd-button-abc123    ).
  3. Copy this information — you'll use it in the Leadster setup.

2. Adjust the button's behavior in RD

  1. In the Link Type field, select Web address.

    In Link Address, enter only the #     (hash) character.

    • This prevents the page from redirecting and lets the click open the chat correctly.

📸 Example:

Button text: Agendar Demonstração  

3. Set up the trigger in Leadster

  1. Open the Leadster panel → Acionadores (Triggers).
  2. Create a new trigger of the “Clique em botão/elemento da página” (Click on a page button/element) type.
  3. In Classe CSS (CSS class), enter the selector you copied from the landing page (example: .rd-button    ).
  4. Publish the changes and test by clicking the button on the landing page.

Important note:

The CSS class field accepts only one class at a time.

Each space is read as a new class, which is why there's a character limit, to keep the text from getting too long or the customer from adding several classes incorrectly. You should choose only one of the available classes.

Keep in mind that if another element on your website uses this same class, it will also open Leadster, so use it carefully.


💡 Tip

If clicking the button reloads the page instead of opening the chat:

  • Check that the Link Address field is set to #    ;
  • Check that the CSS selector used in Leadster exactly matches the one on the landing page (including the .     for a class and #     for an ID).

If you have any questions, contact our team through support.

Best regards 👋