> For the complete documentation index, see [llms.txt](https://docs.graspil.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graspil.com/en/app/attribution-models.md).

# Attribution models

Attribution models are rules by which goal completions, conversions, and other events are credited to a specific traffic source.

Imagine a situation where you have three traffic (user) sources:

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th></tr></thead><tbody><tr><td align="center">Bot catalog</td><td align="center"><mark style="color:blue;">catalog</mark></td></tr><tr><td align="center">Company website</td><td align="center"><mark style="color:purple;">site</mark></td></tr><tr><td align="center">TG ADS advertising</td><td align="center"><mark style="color:orange;">ads</mark></td></tr></tbody></table>

1. The user finds your bot in a bot catalog and launches it; the user's source is "<mark style="color:blue;">**catalog**</mark>**"**. After that, they block the bot.
2. Some time later, they find your website, see a link to the bot there, and launch it again. The source will be "<mark style="color:purple;">**site**</mark>". (Or you can set up [tag forwarding from the website](https://graspil.com/ru/post/utm-from-site-to-bot))
3. A couple of days later, they see your TG ADS advertisement, click the link to the bot, and make a $100 purchase. Source = "<mark style="color:orange;">**ads**</mark>"

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

This is exactly what attribution models are for. These models let you define rules for crediting a goal completion to the right source.

## What attribution models are available?

graspil offers 3 types of attribution

1. First launch
2. Last launch
3. Last meaningful launch

### First launch

This is the first time the user launched the bot in the chain. In this case, the source of 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">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">Company 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 advertising</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 the user launched 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">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">Company 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 advertising</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 meaningful launch

In this attribution type, only **launches** and **returns** are recorded. That is, the first launch and a subsequent launch after the user blocked the bot. If the bot has already been launched and the user launches it again, this attribution model won't 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">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">Company 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 advertising</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>
