Skip to content

Commit

Permalink
feat: tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 22, 2024
1 parent 1328ef3 commit 8f76544
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,17 @@ Generated script:
<script defer data-website-id="..." src="https://umami.is/script.js"></script>
```

You can use umami tracker function like:

```ts
import { umami } from '~analytics/umami';

document.querySelector('.umami')?.addEventListener('click', () => {
// Track events
umami.track('click umami button');
});
```

### Plausible

**Provider key**: `plausible`
Expand Down

0 comments on commit 8f76544

Please sign in to comment.