# Botão com rastreamento de cliques

#### **Integrando um link rastreável em um botão**

Um link com notificação de clique tem um formato específico, o que o torna ideal para ser incorporado em um botão para uma melhor experiência do usuário.

Para criar um link de rastreamento, você precisa chamar a função `proxy('YOUR_LINK')` na calculadora.\
Por exemplo, defina uma variável, digamos `link`, cujo valor é a função com o seu link:

<div data-with-frame="true"><figure><img src="/files/b422e2302ed721855d1b133754ec60c84d219234" alt=""><figcaption></figcaption></figure></div>

Agora você pode usar a variável que contém o link de rastreamento de uma de duas formas: inseri-la diretamente no texto da mensagem ou atribuí-la a um botão.

**Exemplo 1: Usando o link no texto da mensagem**

Você pode inserir o link diretamente em uma mensagem usando a `#{variable}` sintaxe.

<div data-with-frame="true"><figure><img src="/files/f267fd04e782ccdca0cea738e6148e92575f811e" alt=""><figcaption></figcaption></figure></div>

{% hint style="warning" %}
**Importante:** A variável deve ser inserida usando a `#{your_link}` sintaxe.
{% endhint %}

**Exemplo 2: Implementando um link rastreável por meio da configuração do botão**

1\. Crie um botão

<div data-with-frame="true"><figure><img src="/files/8f499236840f8a2d2cc21f97a785e8a7ae7411fc" alt="" width="563"><figcaption></figcaption></figure></div>

2. Na **URL** campo, insira sua variável usando a `#{YOUR_LINK}` sintaxe e defina a função do botão como **"Padrão"**.

<figure><img src="/files/7d6fd71d77b67baf9b023f1d0a59d2e0d3b9057d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Artigos úteis:**

1\. Você pode ler sobre funções para criar links com notificações de clique e tempos de expiração no artigo **"**[**Trabalhando com Links.**](/doc/pt/chatbot/functions/calculadora/links.md)**"**

2\. Para mais detalhes sobre como colocar um link em um botão, veja o artigo **"**[**Botões**](/doc/pt/chatbot/builder/botoes.md)**"**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mavibot.ai/doc/pt/chatbot/builder/attachments/tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
