# زر مع تتبع النقرات

#### **دمج رابط قابل للتتبع داخل زر**

يحتوي الرابط مع إشعار النقر على تنسيق محدد، مما يجعله مثالياً لتضمينه داخل زر لتحسين تجربة المستخدم.

لإنشاء رابط تتبع، تحتاج إلى استدعاء الدالة `proxy('YOUR_LINK')` في الحاسبة.\
على سبيل المثال، عرّف متغيرًا، لنقل `الرابط`، تكون قيمته الدالة مع رابطك:

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

يمكنك الآن استخدام المتغير الذي يحتوي على رابط التتبع بإحدى طريقتين: إدخاله مباشرةً في نص الرسالة أو تعيينه لزر.

**مثال 1: استخدام الرابط في نص الرسالة**

يمكنك إدراج الرابط مباشرةً في رسالة باستخدام الصيغة `#{variable}` .

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

{% hint style="warning" %}
**مهم:** يجب إدراج المتغير باستخدام `#{your_link}` .
{% endhint %}

**مثال 2: تنفيذ رابط قابل للتتبع عبر إعدادات الزر**

1\. أنشئ زرًا

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

2. في **URL** الحقل، أدخل متغيرك باستخدام الصيغة `#{YOUR_LINK}` وقم بتعيين وظيفة الزر إلى **"افتراضي"**.

<figure><img src="/files/ac18d3c9ff18eb4a1e2562f611589a01860b92d3" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**مقالات مفيدة:**

1\. يمكنك قراءة المزيد عن الدوال الخاصة بإنشاء روابط مع إشعارات النقر وأوقات الانتهاء في المقال **"**[**العمل مع الروابط.**](/doc/ar/chatbot/functions/alaalh-alhasbh/links.md)**"**

2\. لمزيد من التفاصيل حول كيفية وضع رابط في زر، راجع المقال **"**[**الأزرار**](/doc/ar/chatbot/builder/alazrar.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/ar/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.
