Commit cd7c4b3
feat: add posthog telemetry for usage tracking
- add telemetry module with PostHog integration
- track map initialization, layer operations, errors
- respect Do Not Track (DNT) browser setting
- provide opt-out via disableTelemetry() or localStorage
- posthog-js is optional peer dependency
- document telemetry in README with privacy info
telemetry is opt-out by default but respects user privacy preferences.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 46438f5 commit cd7c4b3
7 files changed
Lines changed: 928 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
481 | 526 | | |
482 | 527 | | |
483 | 528 | | |
| |||
0 commit comments