Home
What is June?
Install

Users

Identify
Track behaviour

Companies

Identify
Track behaviour
Log in

Tracking user behaviour

See what users are doing inside your product

Have you started identifying your users?

If you haven't implemented the .identify call, please do that first before implementing the .track method.

See how to identify users →

Overview

This guide will teach you how to successfully track how your users are using your product.

Once you've identified them, you can track what they are doing, which features they use, how often and much more. You can use the track method to track events on behalf of your users. Add this code snippet to basic features like "signed up", "logged in" and any additional events that may track the core features of your product.

For June, one of our core features is when a user loads and creates a report. Therefore, we have a "loaded report" and "created report" event.

Code

Replace USER_ID with your own unique identified, ideally the user ID from your database. Passing additional information is possible using the properties object.

In the following example, it's important to call the .identify call before the .group call, because the .group call will attach the current identified user.

1
window.analytics.track('Signed In', {
2
browser: 'chrome'
3
});

Need to identify companies?

If you're a B2B product, you most likely have multiple users using your product in a "workspace". June allows you to view your analytics at the "company" level.

See how to identify companies →

Ready to jump into June?

Once you've implemented the .identify method and are sending track events and don't need to track company behaviour, you're ready to jump into June.