JSFiddle - React, Tailwind, and code Playground

by wisegorilla

JavaScript

const x = {
  collectionId: "",
  productBrand: "MICARAA",
  productId: "",
  productPrice: "",
  orderId: "",
  orderTransactionAmount: "",
  belboonOrderProducts: [
    {id: "6571146838099", price: "79,00", qty: "1"},
    {id: "6543025897555", price: "44,00", qty: "2"},
    {id: "6571593695315", price: "115,00", qty: "1"}
  ],
  event: "add_to_cart",
  gtm: {
    uniqueEventId: 45,
    start: 1624896283607,
    element: "HTMLButtonElement: html.js.hydrated > body.header-layou" +
             "t-2 > div.full--page--container > div.typo-main > div.h" +
             "ome-product-slide.frontpage > div.product-main-home > d" +
             "iv.container > div.top-rate > div.box-content > div.owl" +
             "-carousel.owl-theme#owl_tabnew_slide > div.owl-wrapper-" +
             "outer > div.owl-wrapper > div.owl-item > div.item-poduc" +
             "t > div.grid-3.23timezones.alle-produkte.alle-produkte-" +
             "ohne-minis.annelinawaller.bestseller.binanoehr.calming." +
             "dani-bananii.fahler-teint.falten.gesicht.gift-items-1.h" +
             "ellopippa.janastacca.julisabli.karlakuhlm.katharinawild" +
             "enhof.laura-isa-belle.lauraherz.lauralee-timmler.liebes" +
             "botschaft.liebreizend.maxistories.midnight_mustard.nadi" +
             "ne6809.nowshine.o_liviabella.philandlui.rebeccachelbea." +
             "sabrina_blogs.schminktante.sensible-bis-allergische-hau" +
             "t.sevendayslove.stress.trockene-haut.trockenheit.twoand" +
             "avan.product-hover-4.grid-item.product-item.product-hov" +
             "er.product-review#product-6571146838099 > div.product-i" +
             "nner-content > div.product-content > div.add-to-cart > " +
             "form.variants#[object HTMLInputElement] > span > button" +
             ".btn.add-to-cart-btn",
    elementClasses: "btn add-to-cart-btn",
    elementId: "",
    elementTarget: "",
    elementUrl: ""
  },
  eventModel: {
    send_to:...