Skip to content

Commit

Permalink
[object Object] 'text' values for accordions on manual_section pages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gclssvglx committed Sep 7, 2022
1 parent fbe8966 commit 53493d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/manual_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 53493d6

Please sign in to comment.