Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Tracking active users in instance stats #33714

Closed
infinitetrooper opened this issue May 24, 2024 · 0 comments · Fixed by #33894
Closed

[Task] Tracking active users in instance stats #33714

infinitetrooper opened this issue May 24, 2024 · 0 comments · Fixed by #33894
Assignees
Labels
Billing & Licensing Product Issues pertaining to licensing, billing and usage across self serve and enterprise customers CE Instance Usage For all issues relating to usage, licensing or billing on the CE instance Task A simple Todo

Comments

@infinitetrooper
Copy link
Contributor

We need to better understand the usage on instance, we can achieve this by tracking DAU, WAU and MAU through instance stats, it'll allow us to better see conversions and track retentions, more here.

We should start sending DAU, WAU and MAU in the instance_stats event.

DAU - no. of users who used the instance in the last 24 hours.
WAU - no. of users who used the instance in the last 7 days.
MAU - no. of users who used the instance in the last month.

@infinitetrooper infinitetrooper added DB Infrastructure Pod Pod to handle database infrastructure Task A simple Todo labels May 24, 2024
@github-actions github-actions bot removed the DB Infrastructure Pod Pod to handle database infrastructure label May 24, 2024
@infinitetrooper infinitetrooper added CE Instance Usage For all issues relating to usage, licensing or billing on the CE instance DB Infrastructure Pod Pod to handle database infrastructure labels May 24, 2024
@github-actions github-actions bot added Billing & Licensing Product Issues pertaining to licensing, billing and usage across self serve and enterprise customers and removed DB Infrastructure Pod Pod to handle database infrastructure labels May 24, 2024
abhvsn added a commit that referenced this issue Jun 3, 2024
…nts (#33894)

## Description
PR to enhance analytics:
- User tracking: DAU, WAU, MAU  
- Hashed admin email domain

Update `instance_stats` properties for ref:
```
{
  "event": "instance_stats",
  "properties": {
	    "DAU": 2,
	    "MAU": 3,
	    "WAU": 3,
	    "adminEmailDomainHash": "eb93d881805376ef5297d8ac6fe95970f47d7bbd8d849b3a0d9c7af188caf648",
	    "cloudProvider": "",
	    "deployedAt": "",
	    "edition": "CE",
	    "efs": "",
	    "emailDomainHash": "eb93d881805376ef5297d8ac6fe95970f47d7bbd8d849b3a0d9c7af188caf648",
	    "hostname": "",
	    "instanceId": "6656f32dd841a66006d1ddc3",
	    "numActions": "8",
	    "numApps": "2",
	    "numDatasources": "2",
	    "numOrgs": "2",
	    "numPages": "2",
	    "numPublicApps": "0",
	    "numUsers": "3",
	    "tool": "",
	    "version": "UNKNOWN"
  },
  "receivedAt": "2024-05-31T11:48:35.831Z",
  "timestamp": "2024-05-31T11:48:35.831Z",
  "type": "track",
  "userId": "6656f32dd841a66006d1ddc3"
}
```

Fixes #33714

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9318669278>
> Commit: fcacaf3
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9318669278&attempt=2"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->





## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Billing & Licensing Product Issues pertaining to licensing, billing and usage across self serve and enterprise customers CE Instance Usage For all issues relating to usage, licensing or billing on the CE instance Task A simple Todo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants