diff --git a/README.md b/README.md index f80033c..f494979 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ If a visitor arrives at a website that uses the Nuxt UTM module and a UTM parame - **📍 UTM Tracking**: Easily capture UTM parameters to gain insights into traffic sources and campaign performance. - **🔍 Intelligent De-duplication**: Smart recognition of page refreshes to avoid data duplication, ensuring each visit is uniquely accounted for. - **🔗 Comprehensive Data Collection**: Alongside UTM parameters, gather additional context such as referrer details, user agent, landing page url, browser language, and screen resolution. This enriched data empowers your marketing strategies with a deeper understanding of campaign impact. +- **🔌 Hooks & Extensibility**: Three runtime hooks (`utm:before-track`, `utm:before-persist`, `utm:tracked`) let you skip tracking, enrich data with custom parameters, or trigger side effects after tracking completes. ## Quick Setup @@ -86,6 +87,9 @@ const utm = useNuxtUTM() // - enableTracking(): Enable UTM tracking // - disableTracking(): Disable UTM tracking // - clearData(): Clear all stored UTM data +// - onBeforeTrack(cb): Hook called before data collection +// - onBeforePersist(cb): Hook called to enrich/modify collected data before saving +// - onTracked(cb): Hook called after data is saved ``` @@ -125,11 +129,7 @@ const rejectTracking = () => {

Privacy Settings