Skip to content

Commit abcf85d

Browse files
authored
Codepush analytics (#3460)
* codepush analytics with other options * codepush analytics * api removal
1 parent f39d9c9 commit abcf85d

1 file changed

Lines changed: 26 additions & 20 deletions

File tree

content/rn-codepush/codepush-analytics.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,45 @@ description: Installation and usage metrics for OTA updates
44
weight: 8
55
---
66

7-
Customers using a CodePush server managed by Codemagic get access to analytics about their monthly usage as well as detailed deployment metrics on the OTA Updates page.
7+
CodePush analytics are available via the dashboard or CLI so you can use the one suitable to your workflow.
88

9-
These metrics allow developers to:
9+
## Accessing your metrics
1010

11-
- monitor update adoption
12-
- detect installation problems
13-
- evaluate rollout success
14-
- understand overall OTA usage
11+
### Dashboard
1512

16-
Analytics are typically visible in the Codemagic **OTA Updates dashboard**.
13+
The Codemagic OTA Updates dashboard gives a visual overview of your team's OTA activity.
1714

18-
These insights help teams decide when to proceed with a rollout, adjust or halt rollout using the CodePush CLI, or roll back—see [Production control](/rn-codepush/production-control/).
15+
The main page shows team-level totals for the current month:
1916

20-
## Usage analytics
17+
- **Downloads** - total update downloads across all projects
18+
- **Installs** - total successful installs across all projects
2119

22-
The main OTA Updates page gives an overview of your team's OTA usage across all projects (apps), grouped by month.
20+
It also includes a time-series chart of succeeded and failed installs, updated hourly.
2321

24-
* **Downloads** - the total number of update downloads across all projects in a given month
25-
* **Installs** - the total number of successful update installs across all projects in a given month
22+
Each project is listed below with its latest release and per-release download, install, and failure counts. Clicking through to a project shows time-series charts for downloads, installs, and failures broken down by release version, with a configurable date range.
2623

27-
Additionally, the page includes an installation chart showing the daily number of successful and failed installs, helping you understand when end users install updates and identify trends or potential issues.
24+
### CLI
2825

29-
{{<notebox>}}
30-
**Note**: Data on the page is updated hourly.
31-
{{</notebox>}}
26+
You can view per-release metrics directly in the terminal.
3227

33-
## Projects and release metrics
28+
| **Metric** | **Description** |
29+
| --- | --- |
30+
| Active | Number of devices currently running this release |
31+
| Total | Total successful installs of this release |
32+
| Pending | Downloaded but not yet installed |
33+
| Rollbacks | Number of automatic client-side rollbacks |
3434

35-
Your projects (apps) on the server are listed in the **Projects** section of the OTA Updates page.
35+
Run the following command to list deployment metrics for an app:
3636

37-
To view detailed metrics for a specific project and deployment channel, click the **arrow** icon next to the project and select the desired **Deployment channel** at the top of the page.
37+
{{< highlight bash "style=paraiso-dark">}}
38+
code-push deployment ls <app_name>
39+
{{< /highlight >}}
40+
41+
The following command shows these metrics for all recent releases in a deployment, which is useful for comparing adoption across versions.
3842

39-
The page then lists all updates to the project for the selected deployment channel and shows the number of downloads, successful installs, and failed installs for each update. You can also select a time period at the top of the page to track adoption trends over time.
43+
{{< highlight bash "style=paraiso-dark">}}
44+
code-push deployment history <app_name> Production
45+
{{< /highlight >}}
4046

4147
## Deployment health
4248

0 commit comments

Comments
 (0)