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

Usage metrics #185

Closed
gagdiez opened this issue Jul 22, 2024 · 2 comments · Fixed by #192
Closed

Usage metrics #185

gagdiez opened this issue Jul 22, 2024 · 2 comments · Fixed by #192
Assignees

Comments

@gagdiez
Copy link

gagdiez commented Jul 22, 2024

In create-near-app we have an incredibly simple, non-invasive, and anonymous way of gathering usage metrics though mixpanel.

Basically, each time CNA is used, a small payload is sent to mixpanel that includes which type of contract or frontend was created. Source code here.

Would be nice to implement the same concept in cargo near new, so we can get back statistics from smart contracts created with rust.

@frol
Copy link
Contributor

frol commented Aug 2, 2024

@gagdiez @garikbesson Has anyone flagged privacy concerns regarding the tracking in CLI?

near/near-cli-rs#83 - I remember I started this issue, but then decided to close it as I was not completely comfortable pushing such code to the users. Even an empty HTTP call to mixpanel is already a traceable event that reveals IP, time, and maybe OS.

@gagdiez
Copy link
Author

gagdiez commented Aug 2, 2024

@frol never had any privacy concerns

@frol frol closed this as completed in #192 Aug 21, 2024
frol pushed a commit that referenced this issue Aug 21, 2024
…of the command usage (#192)

The issue: #185 

How tracking events looks like:
<img width="248" alt="image"
src="https://github.com/user-attachments/assets/1f6ea76b-bf8c-400f-bc16-b62a03ba15ed">

UPDATE: sending field `pkg_version` instead of `cli_version`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants