简体   繁体   English

Firebase 电子商务分析 react-native

[英]Firebase eCommerce analytics for react-native

I'm trying to log some eCommerce data into Firebase analytics, I'm using these events to log,我正在尝试将一些电子商务数据记录到 Firebase 分析中,我正在使用这些事件进行记录,

view_item_list, add_to_cart, begin_checkout, add_payment_info, purchase etc. view_item_list、add_to_cart、begin_checkout、add_payment_info、购买等。

I could find these logs on the dashboard, But I couldn't find any eCommerce report with these data.我可以在仪表板上找到这些日志,但我找不到任何包含这些数据的电子商务报告。 Am I missing anything?我错过了什么吗? Should I configure anything on the Firebase console in order to view the ecommerce report?为了查看电子商务报告,我是否应该在 Firebase 控制台上配置任何内容?

These are the example objects I logged.这些是我记录的示例对象。

 let item_jeggings: any = {
  item_id: 'SKU_123',
  item_name: 'jeggings',
  item_category: 'pants',
  item_variant: 'black',
  item_brand: 'Google',
  price: 9.99
};
    let item_boots: any = {
  item_id: 'SKU_456',
  item_name: 'boots',
  item_category: 'shoes',
  item_variant: 'brown',
  item_brand: 'Google',
  price: 24.99
};
const params1 = {
  item_list_id: 'L001',
  item_list_name: 'Related products',
  items: [item_jeggings, item_boots]
};
analytics().logEvent('view_item_list', params1);

Events are logging fine on to the console.事件很好地登录到控制台。 But where can I find the eCommerce analytics?但是我在哪里可以找到电子商务分析?

Edit编辑

Seems currently there is no option in Firebase to view the eCommerce report.似乎目前 Firebase 中没有查看电子商务报告的选项。 Since we can link the firebase project with google analytics & google analytcs, can we use the google analytics to view the eCommerce report which has been logged via Firebase?由于我们可以将 firebase 项目与谷歌分析和谷歌分析链接,我们可以使用谷歌分析查看通过 Firebase 记录的电子商务报告吗?

If not, Which is the best way to log/see the eCommerce report in a react-native application?如果没有,在 react-native 应用程序中记录/查看电子商务报告的最佳方式是什么?

在此处输入图像描述

Firebase acts as a data layer for GTM to push data on the Google Analytics dashboard. Firebase 充当 GTM 的数据层,用于在 Google Analytics(分析)仪表板上推送数据。 So all firebase data passed via GTM providing a GA tag and Enabling Enhanced Ecommerce Features因此,通过 GTM 传递的所有 firebase 数据提供 GA 标签并启用增强的电子商务功能

you can see events on tag manager你可以在标签管理器上看到事件

在此处输入图像描述

you can enable enhanced ecommerce like this您可以像这样启用增强型电子商务

在此处输入图像描述

You can Enable enhance ecommerce like below您可以启用增强电子商务,如下所示

在此处输入图像描述

you can choose Conversions > Ecommerce > Sales Performance to see the report您可以选择Conversions > Ecommerce > Sales Performance来查看报告

在此处输入图像描述

For more information you can see this VIDEO有关更多信息,您可以查看此视频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM