Framework Integrations
Native packages for all major frameworks. Full TypeScript support with context-aware hooks, composables, and services.
React
npm install @dwellcount/react
import { DwellcountProvider, useTracker } from '@dwellcount/react';
function App() {
return (
<DwellcountProvider config={{ siteId: 'YOUR_SITE_ID', version: '1.0.0' }}>
<MyApp />...Vue
npm install @dwellcount/vue
import { createApp } from 'vue';
import { DwellcountPlugin } from '@dwellcount/vue';
const app = createApp(App);
app.use(DwellcountPlugin, { siteId: 'YOUR_SITE_ID', version: '1.0.0' });
...Svelte
npm install @dwellcount/svelte
import { initDwellcount, track, trackAction } from '@dwellcount/svelte';
// Initialize once
initDwellcount({ siteId: 'YOUR_SITE_ID', version: '1.0.0' });
// Track events...Angular
npm install @dwellcount/angular
import { DwellcountModule } from '@dwellcount/angular';
@NgModule({
imports: [DwellcountModule.forRoot({ siteId: 'YOUR_SITE_ID', version: '1.0.0' })]
})
export class AppModule {}...Node.js
npm install @dwellcount/node
import { ServerTracker, expressMiddleware } from '@dwellcount/node';
const tracker = new ServerTracker({
siteId: 'YOUR_SITE_ID',
endpoint: 'https://your-dashboard.com/api/ingest',
version: '2.1.0',...Features Across All Integrations
Full-Stack Version Correlation
Track frontend and backend versions separately. Correlate all events by session and version combination.
Automatic Page View Tracking
Route changes are automatically tracked in SPAs. No manual instrumentation required.
TypeScript First
Full type definitions for all APIs. Get autocomplete and type checking out of the box.
Custom Event Tracking
Track any custom event with typed properties. Events are batched and sent efficiently.
Privacy Controls
Built-in consent management. Strict mode for GDPR compliance without consent banners.
Lightweight Bundle
Each integration adds minimal overhead. Tree-shakeable exports for optimal bundle size.
Server-Side Tracking
Track API performance, database queries, and custom metrics on your Node.js backend.