Skip to content

Options ​

All three entry points (core, vue, nuxt) accept the same options object.

OptionTypeDefaultDescription
ttlDaysnumber30How long touches are kept before expiring.
storageKeystring"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' })

Released under the MIT License.