vercel-analytics-solid
v0.1.3
Published
A lightweight SolidStart component that seamlessly integrates Vercel Analytics into your SolidJS applications.
Maintainers
Readme
Vercel Analytics Solid
Vercel Analytics Solid is a project that integrates Vercel Analytics with SolidJS or SolidStart.
Features
see: https://vercel.com/docs/analytics/package
Installation
To install the package, run:
npm install vercel-analytics-solidUsage
Add the Analytics component to your app
SolidJS project
import { Analytics } from 'vercel-analytics-solid';
export default function App() {
return (
<>
<Analytics path={PAGE_PATH} mode="development" />
{/* Your Project Code... */}
</>
);
}SolidStart Project
in src/app.tsx:
import { Analytics } from 'vercel-analytics-solid/solidstart';
export default function App() {
return (
<Router>
<FileRoutes />
<Analytics />
</Router>
);
}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or feedback, please open an issue on GitHub.
