Description
Nuxt UTM is a Nuxt 3 and 4 module for collecting campaign attribution data in the browser. It captures UTM parameters, Google Ads click identifiers, and landing-page context, stores them in localStorage, and exposes the data through the auto-imported useNuxtUTM() composable. Applications can attach this attribution history to lead forms or send it to their own backend.
The module includes session-based deduplication, runtime controls to enable or disable tracking and clear stored data, and hooks to skip collection, enrich attribution data, or react after it is saved. Tracking is enabled by default and can be configured to start disabled for applications that require an opt-in flow.
The project is MIT licensed and maintained in the Stack Builders organization, in collaboration with The Durst Organization. Documentation and usage examples are available in the repository README.
Repository
https://github.com/stackbuilders/nuxt-utm
npm
https://www.npmjs.com/package/nuxt-utm
Nuxt Compatibility
Nuxt 3, Nuxt 4
Description
Nuxt UTM is a Nuxt 3 and 4 module for collecting campaign attribution data in the browser. It captures UTM parameters, Google Ads click identifiers, and landing-page context, stores them in localStorage, and exposes the data through the auto-imported
useNuxtUTM()composable. Applications can attach this attribution history to lead forms or send it to their own backend.The module includes session-based deduplication, runtime controls to enable or disable tracking and clear stored data, and hooks to skip collection, enrich attribution data, or react after it is saved. Tracking is enabled by default and can be configured to start disabled for applications that require an opt-in flow.
The project is MIT licensed and maintained in the Stack Builders organization, in collaboration with The Durst Organization. Documentation and usage examples are available in the repository README.
Repository
https://github.com/stackbuilders/nuxt-utm
npm
https://www.npmjs.com/package/nuxt-utm
Nuxt Compatibility
Nuxt 3, Nuxt 4