Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update identifying-users-simplified.mdx #1674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Tofufu
Copy link
Contributor

@Tofufu Tofufu commented Dec 12, 2024

Updating the Python pseudocode for Simplified ID Merge.

Having the function:
def identify_user(request):
properties = {
"$device_id": uuid.uuid4(),
"$identified_id": request.user.username

}
track_to_mp(request, "$identify", properties)

may cause confusion because $identify is not used id v3 nor is $identified_id. The main part of the pseudocode should suffice as an example as only $device_id and $user_id are used for v3

Updating the Python pseudocode for Simplified ID Merge.

Having the function:
def identify_user(request):
  properties = {
    "$device_id": uuid.uuid4(),
    "$identified_id": request.user.username
 
  }
  track_to_mp(request, "$identify", properties)

may cause confusion because $identify is not used id v3 nor is $identified_id. The main part of the pseudocode should suffice as an example as only $device_id and $user_id are used for v3
@Tofufu Tofufu requested a review from a team as a code owner December 12, 2024 00:35
@Tofufu Tofufu requested review from catliaw and removed request for a team December 12, 2024 00:35
Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 0:39am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant