Skip to content

Docs: Add how to disable id/anon ID storage to docs #466

@DavidWells

Description

@DavidWells

There seems to be confusion about the anonId and how to not persisting user data. We should add to the docs somewhere that if you're using the Analytics Core library, no IDs anonymous or otherwise are persisted.

E.g.

import { Analytics, EVENTS, CONSTANTS } from '@analytics/core'
import storage from '@analytics/storage-utils'

// See ../packages/analytics-core for source code
export default function analyticsLib(opts = {}) {
  // const defaultSettings = { storage } // no storage now
  return Analytics({
    ...defaultSettings,
    ...opts
  })
}

export { analyticsLib as init }
export { analyticsLib as Analytics }
export { EVENTS, CONSTANTS }

See more in #345

The docs live in https://github.com/DavidWells/analytics/tree/master/site/main/source dir. Maybe add a new file or update one where this might make sense

@claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-generatedAutomatically generated contentclaude-codeItems created or modified by Claude Code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions