# Kudos

A like on the article itself, not on Twitter or Facebook. Confirm your email before kudos are recorded.

```html
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?kudos"></script>
<button class="tinylytics_kudos"></button>
```

Leave the button empty. The script fills it with 👋 and the count.

On an index of posts, set the path:

```html
<button class="tinylytics_kudos" data-path="/the-path/to-your-post"></button>
```

Paths start with `/`. Wrong paths record against the wrong page.

After a click the button gets `.did_select` and is disabled. A kudos id lives in localStorage so the same browser does not count twice.

## Emoji and custom

```html
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?kudos=❤️"></script>
```

`?kudos=custom` returns only the count so you can draw your own control.

`data-private="true"` hides the public count. Style `.did_select` yourself so people still see that it worked.

You can try it here:

<button class="tinylytics_kudos cursor-pointer disabled:font-bold" data-ignore="true">👋</button>

Paid plans include kudos tables on the dashboard.

![Kudos chart on the dashboard](docs/kudos.png)

![Kudos table by path](docs/kudos-table.png)

Webmention likes can land as kudos too. See [webmentions](/docs/developer/webmentions).