Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

identify is not working

未关闭
#147 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
django, python
领域
analytics, backend

调研方向

首先,将主站文档与 Python SDK 指南以及链接的 Python SDK issue #2 进行比较,然后检查本报告中显示的 identify 调用。使用自托管实例和 Django 应用重现该调用;当 identify 成功,并且用户配置文件的 traits 与已跟踪事件一致地出现时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Hello folks. Nice product.

So, here's my problem. Looks like identify is not working properly. I have a self-hosted instance and a Django application.

Looking at the documentation on the main site and in the Python SDK, there is a divergence. I've tried both if I remember correctly, but none worked (https://github.com/Openpanel-dev/python-sdk/issues/2).

Here's my identify method:

def identify_openpanel(user: User) -> None:
    profile_id = str(user.pk)
    op = get_openpanel()
    if op:
        traits = {
            "firstName": user.first_name,
            "lastName": user.last_name,
            "email": user.email,
            "properties": {
                "organization": None,
                "last_login": user.last_login,
            },
        }
        op.identify(profile_id=profile_id, traits=traits)

We are experimenting with tracking also from the front-end side, but mostly will perform tracking with backend.

You can see from the screenshot below that we are tracking correctly (popular events is filled in) and it's getting associated with current user when doing these actions. Is there any configuration we have to tweak?

Image

主要语言
TypeScript
星标
7.1k
派生
510
平均合并
5 天 13 小时
30 天内合并 PR
6

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Openpanel-dev/openpanel 的其他 Issue

查看 Openpanel-dev/openpanel 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。