|
1
|
export const metadata = { |
|
2
|
title: `Usage Information`, |
|
3
|
} |
|
4
|
|
|
5
|
# {metadata.title} |
|
6
|
|
|
7
|
At Medusa, we strive to provide the best experience for developers using our platform. For that reason, Medusa collects anonymous and non-sensitive data that provides a global understanding of how users are using Medusa. |
|
8
|
|
|
9
|
--- |
|
10
|
|
|
11
|
## Purpose |
|
12
|
|
|
13
|
As an open source solution, we work closely and constantly interact with our community to ensure that we provide the best experience for everyone using Medusa. |
|
14
|
|
|
15
|
We are capable of getting a general understanding of how developers use Medusa and what general issues they run into through different means such as our Discord server, GitHub issues and discussions, and occasional one-on-one sessions. |
|
16
|
|
|
17
|
However, although these methods can be insightful, they’re not enough to get a full and global understanding of how developers are using Medusa, especially in production. |
|
18
|
|
|
19
|
Collecting this data allows us to understand certain details such as: |
|
20
|
|
|
21
|
- What operating system do most Medusa developers use? |
|
22
|
- What version of Medusa is widely used? |
|
23
|
- What parts of the Medusa Admin are generally undiscovered by our users? |
|
24
|
- How much data do users manage through our Medusa Admin? Is it being used for large number of products, orders, and other types of data? |
|
25
|
- What Node version is globally used? Should we focus our efforts on providing support for versions that we don’t currently support? |
|
26
|
|
|
27
|
--- |
|
28
|
|
|
29
|
## Medusa Application Analytics |
|
30
|
|
|
31
|
This section covers which data in the Medusa application are collected and how to opt out of it. |
|
32
|
|
|
33
|
### Collected Data in the Medusa Application |
|
34
|
|
|
35
|
The following data is being collected on your Medusa application: |
|
36
|
|
|
37
|
- Unique project ID generated with UUID. |
|
38
|
- Unique machine ID generated with UUID. |
|
39
|
- Operating system information including Node version or operating system platform used. |
|
40
|
- The version of the Medusa application and Medusa CLI are used. |
|
41
|
|
|
42
|
<Note> |
|
43
|
|
|
44
|
Telemetry data is collected when Medusa CLI commands that emit telemetry events are run. For example, `medusa start` and some other CLI commands send usage events. |
|
45
|
|
|
46
|
</Note> |
|
47
|
|
|
48
|
### How to Opt Out |
|
49
|
|
|
50
|
If you prefer to disable data collection, you can do it either by setting the following environment variable to true: |
|
51
|
|
|
52
|
```bash |
|
53
|
MEDUSA_DISABLE_TELEMETRY=true |
|
54
|
``` |
|
55
|
|
|
56
|
Or, you can run the following command in the root of your Medusa application project to disable it: |
|
57
|
|
|
58
|
```bash npx2yarn |
|
59
|
npx medusa telemetry --disable |
|
60
|
``` |
|
61
|
|
|
62
|
--- |
|
63
|
|
|
64
|
## Admin Analytics |
|
65
|
|
|
66
|
This section covers which data in the admin are collected and how to opt out of it. |
|
67
|
|
|
68
|
### Collected Data in Admin |
|
69
|
|
|
70
|
<Note> |
|
71
|
|
|
72
|
Users have the option to [enable or disable the anonymization](#how-to-enable-anonymization) of the collected data. |
|
73
|
|
|
74
|
</Note> |
|
75
|
|
|
76
|
The following data is being collected on your admin: |
|
77
|
|
|
78
|
- The name of the store. |
|
79
|
- The email of the user. |
|
80
|
- The total number of products, orders, discounts, and users. |
|
81
|
- The number of regions and their names. |
|
82
|
- The currencies used in the store. |
|
83
|
- Errors that occur while using the admin. |
|
84
|
|
|
85
|
### How to Enable Anonymization |
|
86
|
|
|
87
|
To enable anonymization of your data from the Medusa Admin: |
|
88
|
|
|
89
|
1. Go to Settings → Personal Information. |
|
90
|
2. In the Usage insights section, click on the “Edit preferences” button. |
|
91
|
3. Enable the "Anonymize my usage data” toggle. |
|
92
|
4. Click on the “Submit and close” button. |
|
93
|
|
|
94
|
### How to Opt-Out |
|
95
|
|
|
96
|
To opt out of analytics collection in the Medusa Admin, set the following environment variable: |
|
97
|
|
|
98
|
```bash |
|
99
|
MEDUSA_FF_ANALYTICS=false |
|
100
|
``` |