mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
Fix track-events.mdx formatting
This commit is contained in:
parent
ee7a283cf1
commit
4baf4ef3f0
1 changed files with 4 additions and 3 deletions
|
@ -42,14 +42,14 @@ Manually tracks outbound link clicks. Useful for programmatic navigation or cust
|
|||
|
||||
```javascript
|
||||
// Track a programmatic navigation to an external site
|
||||
window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank"); */}
|
||||
```
|
||||
window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank");
|
||||
``` */}
|
||||
|
||||
## Typescript Support
|
||||
|
||||
Put this as file `rybbit.d.ts` anywhere in your project to avoid having to do `(window as any).rybbit.event()` everywhere.
|
||||
|
||||
```ts
|
||||
```typescript
|
||||
interface Rybbit {
|
||||
/**
|
||||
* Tracks a page view
|
||||
|
@ -71,3 +71,4 @@ declare global {
|
|||
}
|
||||
|
||||
export {};
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue