Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

How to "unidentify" a user at logout? #30

@vanch3d

Description

@vanch3d

All working fine so far, except for one issue:

  • how do I remove the identification of a user, upon logout for example ?

I tried different things:

  • window.analytics.identify(null)
  • window.analytics.identify({ authenticationStatus: 'logout' });

but their are not triggering a return to anonymous (https://segment.com/docs/connections/spec/identify/#anonymous-id) but to no avail.

The hard way is to clean manually the localStorage of all the ajs_* keys.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions