# 💡How to Create a Facebook Pixel:🤔

**Create a New Facebook Dataset ID (step-by-step guide):** \
\
\
**Step 1.** Navigate to [Facebook Business Settings](https://business.facebook.com/latest/settings/business_users), open **Data Sources**, and then click on **Dataset.**<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcSaj5E-MDgOqEvpG95PacRW5dAHuD0U7dyjF8kMuxhzO5DZZtd4QN9huNTdENhnC_2pJ6Uw0tyTI-u6azoqNLbhYgJAH5OTQ2255Gb8rbFH4pYkSaf4ikFLxTT0z2H8nbJTOz-ianX3P18Or0NjgubWwNh?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
**Step 2.** Click on **Add** to create a New pixel.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe4GY9GiUhX4Vt-kbOO-gtspzs-S6on6-wJOSx2Z7b1NZ1ymV6_U2QQLfpjdJQap8ytOGCK3ZsioU5podS_JtqQZZEO3GYSMbbFJK6ZsqWHqhMP1MDZqrSUaTYpO2KQ98N579-jjqy9Vjv1uibIP-73pUdP?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

**Step 3.** Write a descriptive **Name** for the pixel and **create** it.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmdLFTaIEgQSu5n107mFuuP_iekhRsLsmlDFWfizRcjcwxCAeQrY-Pl4Vm8xpsRPWNMYU_DmWvNjv-UuXSv-l-gJlvWgcFeROAU1BdYoihLUCyaE1ldNL-Pt2DbgTg5Nm-higcSeZgaaXW8IJtmSpxgtc?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
**Step 4.** Now Copy **Dataset ID** and pass it to our app as **FB Dataset ID.**\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf1AjbuC2o5XIx1x4Od1hqnts1T0mk-LzIwKueJRjv6hSkWsDa7dHvZjSfNMGWnbI9IlKgFIg_c_zonqe7cjaq_KsCHLl9JhQE5y-MDjONKTXuWAyjonXYLqO7kjEFasFKM6uHyEXx2Mt2aGJFXX0rsaZk?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
**Step 5.** Scroll down, click on **Generate Access Token**, and copy it.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfVtb7i5jnf4a8eemuIi5EVL9oT76sfdB5idmn7MKH4Pd7HBKZtPd2H38sYu0RWzDW984sySWzJipbJPhpKbFYsmzVxFJo2M6LIRz8zhOtdxGd_PqLbyt7FNcRAoiJLWYIoiymv7WVUOLkqFp6UmDVmFE8j?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc1PASHJFktq0QxbK0Gud8NTLSvpgyluaqiHgiDydwW1llX0UiVRa2HSW53HjlTuXyfMz0qAJmF1XDxXfBOvhi3CzGi9JDh3WrbySv1ZdNTBQXPu4Bnso5XWmWU5bG71zGfQz1ziD6d4SfJAj_-25pyu6F6?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
And your pixel is created successfully🤩


---

# 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://infinite-pixel-tracking.gitbook.io/infinite-pixel-tracking/facebook-pixel/how-to-create-a-facebook-pixel.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.
