docs icon indicating copy to clipboard operation
docs copied to clipboard

JS Quickstart

Open kathmath opened this issue 2 years ago • 2 comments

In the web quickstart for tracking your first event we tell people to init, identify, then track. Including identify isn't necessary to track an event and doesn't make sense in the case of anon activity and could cause confusion on id mgmt - I think it should be removed or clarified it's not req'd unless the user is identified. Other guides for mobile just have init + track.

kathmath avatar Jun 08 '23 14:06 kathmath

Challenge is that if you want to track a "Signup" event, it is required (because that's non-anonymous).

Maybe we can add a comment above .identify() that says something like "// Remove this if the user is anonymous" or something?

ranic avatar Jun 09 '23 03:06 ranic

totally fair. as i'm thinking more about it this might be a broader thing to consider. we're using signup in most of the quickstart guides except http (but in mobile we don't include identify) for consistency i'm assuming. but then in the ref docs we're all over the place with event naming and the JS ref example isn't an authentication event. maybe in quickstart guides we can show sending both an anon event and auth event. I'd challenge using signup across the board in these - ofc you can track business critical events like signup, purchase, etc client side but it's a bit at odds with our usual recommendation to track these server-side for safety.

kathmath avatar Jun 13 '23 16:06 kathmath

This issue has been inactive for over 180 days. It will be automatically closed in 14 days. Label this issue as "never-stale" to exempt it from this check. —Mark stale

github-actions[bot] avatar Feb 26 '25 04:02 github-actions[bot]