【发布时间】: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