# Botón con seguimiento de clics

#### **Integrar un enlace rastreable en un botón**

Un enlace con notificación de clic tiene un formato específico, lo que lo hace ideal para incrustarlo dentro de un botón y así mejorar la experiencia del usuario.

Para crear un enlace de seguimiento, necesitas llamar a la función `proxy('YOUR_LINK')` en la calculadora.\
Por ejemplo, define una variable, por ejemplo `enlace`cuyo valor es la función con tu enlace:

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

Ahora puedes usar la variable que contiene el enlace de seguimiento de una de dos maneras: insertarla directamente en el texto del mensaje o asignársela a un botón.

**Ejemplo 1: Usar el enlace en el texto del mensaje**

Puedes insertar el enlace directamente en un mensaje usando la `#{variable}` sintaxis.

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

{% hint style="warning" %}
**Importante:** La variable debe insertarse usando la `#{your_link}` sintaxis.
{% endhint %}

**Ejemplo 2: Implementar un enlace rastreable mediante la configuración del botón**

1\. Crea un botón

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

2. En la **URL** campo, introduce tu variable usando la `#{YOUR_LINK}` sintaxis y establece la función del botón en **"Predeterminado"**.

<figure><img src="/files/75cdb88ce980b6530073aa5219ddb726bae787ab" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Artículos útiles:**

1\. Puedes leer sobre las funciones para crear enlaces con notificaciones de clic y tiempos de expiración en el artículo **"**[**Trabajar con enlaces.**](/doc/es/chatbot/functions/calculadora/links.md)**"**

2\. Para más detalles sobre cómo colocar un enlace en un botón, consulta el artículo **"**[**Botones**](/doc/es/chatbot/builder/botones.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/es/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.
