> For the complete documentation index, see [llms.txt](https://docs.tagfly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tagfly.io/twitter/how-to-find-twitter-event-id.md).

# How to find Twitter Event ID

## Step 1: In Twitter's Event Manager, click on the "Add events" button

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

## Step 2: Configure your event

For example, if you're configuring an “Add to cart” event, it may look like the following

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

At the Setup method, you should choose Define event with code, then go to the next step

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

Finally, select the parameters you want to view. Then click the Save button

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

## Step 3: Copy the Event ID

After creating an event, your event ID will be displayed as ID: tw-xxx-yyy Copy them to configure TagFly

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

## Step 4: Add event ID to TagFly

After copying the event ID -> move to TagFly > Twitter -> Events.

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

Click on the “Add event” button or the Pencil icon to paste your event ID

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.tagfly.io/twitter/how-to-find-twitter-event-id.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.
