Releases: hacktoolkit/nextjs-htk
Releases · hacktoolkit/nextjs-htk
v0.3.0
What's New
MetaPixel Component
- New
MetaPixelcomponent for easy Meta (Facebook) Pixel integration trackMetaEvent()helper for standard events (Lead, Purchase, PageView, etc.)trackMetaCustomEvent()helper for custom events- Configurable load strategy and optional PageView disabling
- Full TypeScript support with proper Window interface extension
Usage
import { MetaPixel, trackMetaEvent, trackMetaCustomEvent } from '@hacktoolkit/nextjs-htk'
// In _app.tsx or layout
<MetaPixel pixelId="1234567890123456" />
// Track standard events
trackMetaEvent('Lead')
trackMetaEvent('Purchase', { value: 99.99, currency: 'USD' })
// Track custom events
trackMetaCustomEvent('StartTrial')Full Changelog: v0.2.0...v0.3.0