Options ​
All three entry points (core, vue, nuxt) accept the same options object.
| Option | Type | Default | Description |
|---|---|---|---|
ttlDays | number | 30 | How long touches are kept before expiring. |
storageKey | string | "attribution_touches" | The localStorage key used to persist data. |
Usage by entry point ​
ts
useTracking({ ttlDays: 30, storageKey: 'attribution_touches' })ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['attribution-kit/nuxt'],
attribution: { ttlDays: 30, storageKey: 'attribution_touches' },
})ts
createTracker({ ttlDays: 30, storageKey: 'attribution_touches' })