You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I'm new to PostHog and generally loving it so far — thank you. =)
I'm seeing some surprising behavior which seems like a bug. But this was working earlier last week, so it's very possible I've caused a regression on my end — but I didn't change anything here, and the code looks so simple, so I'm not sure.
I'm capturing an event like this:
posthog.capture(name,props,{$set: user,})
And logging a line immediately above this confirming the values of the variables are set as I think they are:
You can see I'm passing custom properties to $set on the person, like name and gender.
I'm unfortunately not seeing these properties get set on the person in PostHog, or passed through in $set on this event:
And when I enable posthog.debug(true) on my posthog-js instance, I similarly don't see any $set passed with the event:
(I also don't see any other debug lines printed for other sends immediately after this, e.g. identify. And to be clear, we are calling posthog.identify() before this, on initial page load, and I do see $set being included there.)
Am I doing something wrong here, or misunderstanding the API?
I'll try calling an explicit separate setPersonProperties instead for now, but wanted to file this bug in the meantime. Thank you!
The text was updated successfully, but these errors were encountered:
Hi there! I'm new to PostHog and generally loving it so far — thank you. =)
I'm seeing some surprising behavior which seems like a bug. But this was working earlier last week, so it's very possible I've caused a regression on my end — but I didn't change anything here, and the code looks so simple, so I'm not sure.
I'm capturing an event like this:
And logging a line immediately above this confirming the values of the variables are set as I think they are:
My log prints correctly:
You can see I'm passing custom properties to
$set
on the person, likename
andgender
.I'm unfortunately not seeing these properties get set on the person in PostHog, or passed through in
$set
on this event:And when I enable
posthog.debug(true)
on my posthog-js instance, I similarly don't see any$set
passed with the event:(I also don't see any other debug lines printed for other sends immediately after this, e.g.
identify
. And to be clear, we are callingposthog.identify()
before this, on initial page load, and I do see$set
being included there.)Am I doing something wrong here, or misunderstanding the API?
I'll try calling an explicit separate
setPersonProperties
instead for now, but wanted to file this bug in the meantime. Thank you!The text was updated successfully, but these errors were encountered: