Product Analytics
Product analytics is a crucial aspect of understanding how users interact with your product/application. By analyzing user behavior, you can make informed decisions to improve user experience, increase engagement, and drive growth.
Events
Use the SDK to track events for your users, for example this could be when they used an important feature.
In the exmaple below we will track when an invoice is generated.
devunusClient.logEvent('invoice_created', { property: 'value' })
See the SDK guides for JavaScript, for more information.
Best Practices for event naming
-
Use Clear and Descriptive Names: Event names should clearly describe the action being tracked. Avoid abbreviations and ambiguous terms.
- Good:
user_signed_up
- Bad:
signup
- Good:
-
Follow a Consistent Naming Convention: Use a consistent format for all event names. A common convention is to use lowercase letters and underscores to separate words.
- Example:
button_clicked
,page_viewed
- Example:
-
Include Context: Provide context to the event to make it more meaningful. This can include the object or feature being interacted with.
- Example:
invoice_generated
,profile_updated
- Example:
-
Use Past Tense: Name events in the past tense to indicate that the action has already occurred.
- Example:
email_sent
,file_uploaded
- Example:
Metrics
devunus will automatically generate metrics for your events to track daily counts, unique users and companies (SaaS only).
From which you can then view the data by period, event, user or company.