From d94f51242d99930e44d10484a4171506c6eaa487 Mon Sep 17 00:00:00 2001 From: andreaowu Date: Wed, 24 Aug 2022 18:37:24 +0100 Subject: [PATCH 1/3] analytics select_content does not have items --- snippets/analytics-next/index/analytics_log_event_params.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/analytics-next/index/analytics_log_event_params.js b/snippets/analytics-next/index/analytics_log_event_params.js index 27e6528d..d7cfd41f 100644 --- a/snippets/analytics-next/index/analytics_log_event_params.js +++ b/snippets/analytics-next/index/analytics_log_event_params.js @@ -10,7 +10,6 @@ import { getAnalytics, logEvent } from "firebase/analytics"; const analytics = getAnalytics(); logEvent(analytics, 'select_content', { content_type: 'image', - content_id: 'P12453', - items: [{ name: 'Kittens' }] + content_id: 'P12453' }); -// [END analytics_log_event_params_modular] \ No newline at end of file +// [END analytics_log_event_params_modular] From e2ffbe48d4142299dc0e52f1f47eaeef6c48afe3 Mon Sep 17 00:00:00 2001 From: andreaowu Date: Wed, 24 Aug 2022 18:45:24 +0100 Subject: [PATCH 2/3] run snippets --- snippets/analytics-next/index/analytics_log_event_params.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snippets/analytics-next/index/analytics_log_event_params.js b/snippets/analytics-next/index/analytics_log_event_params.js index d7cfd41f..27e6528d 100644 --- a/snippets/analytics-next/index/analytics_log_event_params.js +++ b/snippets/analytics-next/index/analytics_log_event_params.js @@ -10,6 +10,7 @@ import { getAnalytics, logEvent } from "firebase/analytics"; const analytics = getAnalytics(); logEvent(analytics, 'select_content', { content_type: 'image', - content_id: 'P12453' + content_id: 'P12453', + items: [{ name: 'Kittens' }] }); -// [END analytics_log_event_params_modular] +// [END analytics_log_event_params_modular] \ No newline at end of file From 481d53dcdb9b91ad3ed9e53e56b25e84ec55e843 Mon Sep 17 00:00:00 2001 From: andreaowu Date: Thu, 8 Sep 2022 14:18:55 +0200 Subject: [PATCH 3/3] analytics select_content does not have items --- analytics-next/index.js | 3 +-- snippets/analytics-next/index/analytics_log_event_params.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/analytics-next/index.js b/analytics-next/index.js index 510fa758..2b736cde 100644 --- a/analytics-next/index.js +++ b/analytics-next/index.js @@ -27,8 +27,7 @@ function logEventParams() { const analytics = getAnalytics(); logEvent(analytics, 'select_content', { content_type: 'image', - content_id: 'P12453', - items: [{ name: 'Kittens' }] + content_id: 'P12453' }); // [END analytics_log_event_params] } diff --git a/snippets/analytics-next/index/analytics_log_event_params.js b/snippets/analytics-next/index/analytics_log_event_params.js index 27e6528d..e79d7ec0 100644 --- a/snippets/analytics-next/index/analytics_log_event_params.js +++ b/snippets/analytics-next/index/analytics_log_event_params.js @@ -10,7 +10,6 @@ import { getAnalytics, logEvent } from "firebase/analytics"; const analytics = getAnalytics(); logEvent(analytics, 'select_content', { content_type: 'image', - content_id: 'P12453', - items: [{ name: 'Kittens' }] + content_id: 'P12453' }); // [END analytics_log_event_params_modular] \ No newline at end of file