Skip to content

Conversation

ian
Copy link
Owner

@ian ian commented Jul 11, 2025

Fixes #7

PR description is being written. Please check back in a minute.

Devin Session: https://app.devin.ai/sessions/74650dc811cb4c239a5f7ec544e6ea7b


Summary by cubic

Migrated the Plausible plugin from plausible-tracker to plausible-client for better event tracking and reliability.

  • Refactors
    • Replaced plausible-tracker with plausible-client and updated the plugin to use the new API.
    • Removed the trackLocalhost option, which is no longer supported.
    • Improved event delivery on static sites and fixed issues with outbound link tracking.

- Replace plausible-tracker dependency with plausible-client ^1.1.0
- Update plugin implementation to use new class-based API
- Remove trackLocalhost option (not needed in new package)
- Fix lost events on static sites and XHR API issues
- Addresses GitHub issue #7

Breaking changes:
- trackLocalhost configuration option removed
- Internal API changes (users should see no difference)

Benefits:
- Fixes lost events on static sites using fetch API instead of XHR
- Resolves broken outbound tracking with target='_blank'
- Eliminates callback issues on localhost
- Uses actively maintained package
Copy link

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedplausible-client@​1.1.07110010078100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update plausible API client

1 participant