使用 Vexo

有关安装和配置 Vexo 以进行实时用户分析的指南。


维克斯 为你的 Expo 应用提供实时用户分析,帮助你了解用户如何与你的应用交互、识别摩擦点并提高参与度。

¥Vexo provides real-time user analytics for your Expo application, helping you understand how users interact with your app, identify friction points, and improve engagement.

通过两行集成,Vexo 开始自动收集数据,为你提供可操作的见解,以优化应用的用户体验。如果需要,你还可以创建自定义事件。

¥With a two-line integration, Vexo starts collecting data automatically, giving you actionable insights to optimize your app's user experience. If needed, you can also create custom events.

特性

¥Features

  1. 完整仪表板

    ¥Complete Dashboard

    • 活跃用户

      ¥Active Users

    • 会话时间

      ¥Session Time

    • 下载

      ¥Downloads

    • 操作系统分布

      ¥OS Distribution

    • 版本采用

      ¥Version Adoption

    • 地理洞察

      ¥Geographic Insights

    • 热门屏幕

      ¥Popular Screens

  2. 会话重播

    ¥Session Replays

    • 观看真实用户会话以了解它们的交互。

      ¥Watch real user sessions to understand their interactions.

  3. 热图

    ¥Heatmaps

    • 确定应用中最受关注的区域。

      ¥Identify the most engaged areas of your app.

  4. 渠道

    ¥Funnels

    • 分析用户流并优化转化率。

      ¥Analyze user flows and optimize conversion rates.

  5. 自定义事件和仪表板个性化

    ¥Custom Events and Dashboard Personalization

    • 通过创建自定义事件来跟踪特定用户操作。

      ¥Track specific user actions by creating custom events.

    • 自定义仪表板以可视化关键指标。

      ¥Customize your dashboard to visualize key metrics.

入门

¥Getting started

  1. 创建账户:注册 Vexo 账户

    ¥Create an account: Sign up for a Vexo account.

  2. 创建新应用:系统将提示你创建一个新的应用。给它一个名字(你可以稍后更改),提交后,你将收到一个 API 密钥。

    ¥Create a new app: You'll be prompted to create a new app. Give it a name (you can change it later), and once you submit it, you'll receive an API key.

  3. 安装 Vexo 包:在你的项目中运行以下命令:

    ¥Install the Vexo package: Run the following command in your project:

Terminal
npm install vexo-analytics
Terminal
yarn add vexo-analytics
  1. 初始化 Vexo:将以下代码添加到应用的入口文件(例如,如果使用 Expo Router,则为 index.js、App.js 或 app/_layout.tsx):

    ¥Initialize Vexo: Add the following code in your app's entry file (for example, index.js, App.js, or app/_layout.tsx if using Expo Router):

app/_layout.tsx
   import { vexo } from 'vexo-analytics';

   // You may want to wrap this with `if (!__DEV__) { ... }` to only run Vexo in production.
   vexo('YOUR_API_KEY');
  1. 重建并运行你的应用:由于 vexo-analytics 包含原生代码,你需要重建应用。

    ¥Rebuild and run your app: Since vexo-analytics includes native code, you need to rebuild your application.

  2. 验证集成:转到 Vexo 上的应用页面,你应该会看到你的第一个事件!

    ¥Verify integration: Go to your app's page on Vexo and you should see your first event!

兼容性

¥Compatibility

  • Expo:Vexo 与 开发构建 兼容,不需要额外的配置插件。

    ¥Expo: Vexo is compatible with Development builds and does not require additional configuration plugins.

  • Expo Go:不支持,因为 Vexo 需要自定义原生代码。

    ¥Expo Go: Not supported, as Vexo requires custom native code.

了解有关 Vexo 的更多信息

¥Learn more about Vexo

要了解有关将 Vexo 与 Expo 结合使用的更多信息,请查看 Vexo 文档

¥To learn more about using Vexo with Expo, check out the Vexo documentation.