Openpanel-dev / Openpanel-dev/openpanel

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

Open
#270 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7k
Forks
481
Avg merge
1d 3h
Merged PRs (30d)
21

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reviewing the Node.js tracking API's deviceId, user identification, and alias behavior, then reproduce the anonymous-to-signed-up flow described in the issue. Done means the earlier and later events appear under one profile, or the unsupported behavior and required documentation are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
analytics, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.