Skip to main content
All CollectionsFAQ
When should you trigger the identify and group call?
When should you trigger the identify and group call?

FAQ: Utilizing .identify() and .group() in Analytics

Updated over a year ago

.identify() and .group() functions in analytics are used to track user behavior and their group activities, respectively.

  • .identify() assigns a unique ID and traits to a user for individual tracking.

  • .group() assigns the user to a specific group (like a company) for group-level tracking.

You should use both for comprehensive data collection. Call these functions once per session, not at every render. In React, you can invoke them in a useEffect hook with an empty dependency array ([]), ensuring they're called once when the component mounts.

Related questions:

  • When is it appropriate to initiate the .identify() and .group() functions?

  • At what point should the .identify() and .group() calls be triggered?

  • When are you supposed to invoke the .identify() and .group() methods?

  • What's the suitable timing to make the .identify() and .group() calls?

  • When should you make the .identify() and .group() function calls in your application?

Did this answer your question?