From 53493d6ea8bf786ef79024fd5954ce0d20f6b67a Mon Sep 17 00:00:00 2001 From: Graham Lewis <44037625+gclssvglx@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:03:08 +0100 Subject: [PATCH] [object Object] 'text' values for accordions on manual_section pages What Use only the 'text' attribute of the object used to render the heading of accordions on manual sections. Why Currently, when the value arrives in Google Analytics (GA) the ga4['text'] value is showing as '[object Object]' and not a simple string. --- app/views/content_items/manual_section.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_items/manual_section.html.erb b/app/views/content_items/manual_section.html.erb index 95ee87552..9f0dc9767 100644 --- a/app/views/content_items/manual_section.html.erb +++ b/app/views/content_items/manual_section.html.erb @@ -65,7 +65,7 @@ ga4: { event_name: "select_content", type: "accordion", - text: item[:heading], + text: item[:heading][:text], index: index, index_total: @content_item.main.length, }