【问题标题】:GA4 - How to view the list of items selected on "select_item" eventsGA4 - 如何查看在“select_item”事件中选择的项目列表
【发布时间】:2022-06-11 23:14:03
【问题描述】:

我正在将 Google Analytics 4 添加到我的项目中,我已经在我的页面上的产品中实现了“select_item”推荐事件。在调试模式下,我可以看到当客户尝试查看产品时,事件触发,我在“项目”选项卡中看到客户正在查看的产品数据,但是,在任何报告中都看不到是客户选择的产品。有谁知道如何生成包含客户选择的产品列表的报告?

gtag("event", "select_item", {
    item_list_id: "selected_card",
    item_list_name: "Card Selected",
    items: [
        {
            item_name: $(this).data("gacardname"),
            item_brand: $(this).data("gacampaign"),
            item_category: $(this).data("gacellcode"),
            item_category2: $(this).data("gasource"),
            item_category3: $(this).data("gatitle"),
            item_category4: $(this).data("gaaction"),
            item_list_id: $(this).data("gacardname"),
            item_list_name: $(this).data("gacardname"),
        }
    ]
});

【问题讨论】:

    标签: javascript google-analytics google-analytics-api google-analytics-4


    【解决方案1】:

    Items 冒号后的结果可能没有出现在引号中 - 它应该显示如下:

    item_name: "$(this).data("gacardname")",
    item_brand: "$(this).data("gacampaign")",
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多