Plausible provider for your SolidJS app.
All credit should go to barbapapazes for updating the plausible-tracker
Install with pnpm (solid-js
should be installed as a dev dependency):
pnpx jsr add -D @strootje/solid-plausible
Add the PlausibleProvider
to your app component:
export default function App() {
return (
<PlausibleProvider>
// ...
</PlausibleProvider>
);
}
Licensed under the MPL-2.0 license.
Copyright © 2024, Bastiaan Stroosnijder