Can I use HTML tags within GA4 ecommerce events?
dataLayer.push({
event: "view_item",
ecommerce: {
currency: "USD",
value: 7.77,
items: [
{
item_id: "SKU_12345",
item_name: "Stan <sup>and</sup> Friends Tee",
Can I use HTML tags within GA4 ecommerce events?
dataLayer.push({
event: "view_item",
ecommerce: {
currency: "USD",
value: 7.77,
items: [
{
item_id: "SKU_12345",
item_name: "Stan <sup>and</sup> Friends Tee",
The HTML tags will not produce any impact. The value you provide in that field is precisely what will be displayed in the reporting.
Then the reporting will showcase the text "<sup>" itself, without rendering it as superscripted text?
Can I use HTML tags within GA4 ecommerce events?
dataLayer.push({
event: "view_item",
ecommerce: {
currency: "USD",
value: 7.77,
items: [
{
item_id: "SKU_12345",
item_name: "Stan <sup>and</sup> Friends Tee",The HTML tags will not produce any impact. The value you provide in that field is precisely what will be displayed in the reporting.
Then the reporting will showcase the text "<sup>" itself, without rendering it as superscripted text?
It should work. Since "<sup>" is included in a JavaScript string, the computer won't interpret the characters as having any special significance.