# Attribution Models

Attribution models are rules that assign goal achievements, conversions, and other events to specific traffic sources.

Imagine the following scenario, where you have three traffic sources (users):

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center">The bot catalog</td><td align="center"><mark style="color:blue;">catalog</mark>   </td></tr><tr><td align="center">The company's website</td><td align="center"><mark style="color:purple;">site</mark></td></tr><tr><td align="center">Advertising in TG ADS</td><td align="center"><mark style="color:orange;">ads</mark></td></tr></tbody></table>

1. A user finds your bot in a bot directory and launches it; the user’s source will be “<mark style="color:blue;">**catalog**</mark>.” After that, the user blocks the bot.
2. After some time, the user finds your website, sees a link to the bot, and launches it again. The source will be “<mark style="color:purple;">**site**</mark>.” (Or you can configure the tags to be transferred from the site)
3. A couple of days later, the user sees your ad in TG ADS, clicks the link to the bot, and makes a purchase of $100. The source = "<mark style="color:orange;">**ads**</mark>.”

In this case, which source should the purchase conversion be attributed to? <mark style="color:blue;">**Catalog**</mark>, <mark style="color:purple;">**site**</mark>, or <mark style="color:orange;">**ads**</mark>?

This is where attribution models come into play. These models allow you to set rules for assigning goal achievements to the appropriate source.

## **What Attribution Models Exist?**

In Graspil, there are three types of attribution:

1. First Launch
2. Last Launch
3. Last Significant Launch

**First Launch**

This is the first time a user launches the bot in the chain. In this case, the source of the events will be <mark style="color:blue;">**catalog**</mark>.

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center">The bot catalog</td><td align="center"><mark style="color:blue;">catalog</mark>   </td><td align="center"><mark style="color:green;"><strong>$100</strong></mark></td></tr><tr><td align="center">Website</td><td align="center"><mark style="color:purple;">site</mark></td><td align="center"><mark style="color:red;"><strong>$0</strong></mark></td></tr><tr><td align="center">TG ADS</td><td align="center"><mark style="color:orange;">ads</mark></td><td align="center"><mark style="color:red;"><strong>$0</strong></mark></td></tr></tbody></table>

**Last Launch**

This is the last time a user launches the bot in the chain. In this case, the source will be <mark style="color:orange;">**ads**</mark>.

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center">The bot catalog</td><td align="center"><mark style="color:blue;">catalog</mark>   </td><td align="center"><mark style="color:red;"><strong>$0</strong></mark></td></tr><tr><td align="center">Website</td><td align="center"><mark style="color:purple;">site</mark></td><td align="center"><mark style="color:red;"><strong>$0</strong></mark></td></tr><tr><td align="center">TG ADS</td><td align="center"><mark style="color:orange;">ads</mark></td><td align="center"><mark style="color:green;"><strong>$100</strong></mark></td></tr></tbody></table>

**Last Significant Launch**

In this attribution model, only **launches** and **returns** are recorded. This means the first launch and the re-launch after blocking the bot. If the bot was already launched and the user launches it again, this attribution model will not apply. In this case, the source will be <mark style="color:purple;">**site**</mark>.

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center">The bot catalog</td><td align="center"><mark style="color:blue;">catalog</mark>   </td><td align="center"><mark style="color:red;">$0</mark></td></tr><tr><td align="center">Website</td><td align="center"><mark style="color:purple;">site</mark></td><td align="center"><mark style="color:green;"><strong>$100</strong></mark></td></tr><tr><td align="center">TG ADS</td><td align="center"><mark style="color:orange;">ads</mark></td><td align="center"><mark style="color:red;">$<strong>0</strong></mark></td></tr></tbody></table>


---

# 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.graspil.com/en/app/attribution-models.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.
