• Members 24 posts
    Dec. 4, 2023, 5:41 a.m.

    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",

  • Mod
    Dec. 4, 2023, 5:44 a.m.

    The HTML tags will not produce any impact. The value you provide in that field is precisely what will be displayed in the reporting.

  • Members 24 posts
    Dec. 4, 2023, 5:45 a.m.

    Then the reporting will showcase the text "<sup>" itself, without rendering it as superscripted text?

  • Mod
    Dec. 4, 2023, 5:48 a.m.

    It should work. Since "<sup>" is included in a JavaScript string, the computer won't interpret the characters as having any special significance.