Skip to content

Node.js - how to track events by deviceId and then identify with profileId later #270

@pie6k

Description

@pie6k

I have a desktop app, but tracking happens in our node.js server which is a proxy between the app and openpanel.

How can I achieve this flow:

  • new user opens the app without an account
  • we track some events (we don't know user id as there is no user yet. So I'd like to use deviceId)
  • later, user creates an account -> we know userId
  • I want to identify the user now
  • as a result I want all events made before and after user signing up to be visible as made by a single user

I was a bit confused checking the docs. I also realized alias function does not work

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