EAS Insights

EAS Insights 简介,这是使用 expo-insights 库的项目的预览服务。


重要 EAS Insights 处于测试版,可能会发生重大更改。在预览期间,可免费使用。

EAS Insights 是一项服务,旨在提供对项目性能、使用情况和影响力的洞察。我们目前提供的 Insights 预览版对所有开发者开放,并且我们将根据用户反馈和建议不断推出新功能和特性。

EAS Insights 可让你轻松查看应用的状态,提供有关跨平台使用情况、应用商店版本和时间范围的信息。

🌐 EAS Insights makes it easy to see the state of your app, providing information about usage across platforms, app store versions, and timeframes.

与 EAS 更新集成

🌐 Integration with EAS Update

如果你已经在使用 EAS Update,我们可以在无需进行任何额外客户端更改的情况下提供某些高级使用洞察。这之所以可行,是因为我们将来自客户端请求更新的数据进行汇总,形成一个有限的洞察视图,该视图显示了随时间变化的使用情况,以及按平台划分的使用情况。

🌐 If you're already using EAS Update, we provide certain high-level usage insights without any additional client-side changes. This is possible because by aggregating data from client requests to check for an update into a limited Insights view that shows usage over time, as well as usage broken down by platform.

使用 expo-insights

🌐 Use the expo-insights library

开发者可以将 expo-insights 库添加到他们的项目中,从而获得比仅汇总更新请求提供的更精确的使用情况指标,并按应用商店版本提供额外的细分。目前,该库仅限于发送与应用冷启动相关的客户端事件,但未来我们将扩展 expo-insights,提供新的事件类型和数据负载,以支持更高级的功能。

🌐 Developers can add the expo-insights library to their projects and gain more precise usage metrics (than those provided by just aggregating update requests) and additional breakdowns by app store version. Currently, the library is limited to sending client events only pertaining to cold starts of the app, but in the future we will expand expo-insights to offer new types of events and payloads, to support more advanced functionality.

安装

🌐 Installation

要使用 expo-insights,请确保通过运行 eas init 将你的应用链接到 app.json / app.config.js 中的 EAS 项目,然后安装该库。

🌐 To use the expo-insights, make sure your app is linked to your EAS project in app.json / app.config.js by running eas init, then install the library.

Terminal
# Install EAS CLI if you have not already
npm i -g eas-cli

# Initialize your project EAS if you have not already
eas init

# Install the library
npx expo install expo-insights

安装库后,可以使用 EAS本地 创建构建。应用启动时,库会自动将事件发送到 EAS Insights。

🌐 After installing the library, create a build either with EAS or locally. The library will automatically send events to EAS Insights when the app is launched.

查看见解

🌐 View insights

要查看你应用的洞察数据,请在 EAS 仪表板中进入项目列表,选择你的项目,然后从导航菜单中选择 洞察

🌐 To view insights data of your app, in the EAS dashboard, go to projects list, select your project and then select Insights from the navigation menu.