• Resolved gtmoverblue

    (@gtmoverblue)


    Hi,

    I’ve updated to 1.13.1 and have edited my UA GTM setup as you detailed in the help article.

    I am running GA4 in parallel but am having some problems with the setup.

    My issue is that in the view_cart dataLayer push, the value of ecommerce.value (total value of cart items) is a string rather than numeric. Each individual item price is correctly numeric.

    Here is an example snippet:

    dataLayer.push({
      event: "view_cart",
      ecommerce: {
        currency: "EUR",
        value: "2857.00",
        items: [
          {
            item_id: "AT-LPW30TK",
            item_name: "Audio-Technica AT-LPW30TK",
            item_brand: "Audio-technica",
            price: 339,
            item_category: "Tocadiscos",
            quantity: 1,
            google_business_vertical: "retail",
            id: "AT-LPW30TK"
          },

    Could it be something to do with having GA4 and UA running together? In the plugin settings I still have checked “Enhanced eCommerce” which I presume is to keep UA working correctly.

    Thanks for any help with this.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Total cart value is a string not numeric’ is closed to new replies.