{"id":144574,"date":"2025-03-19T22:54:08","date_gmt":"2025-03-19T22:54:08","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/measure-cart-value-in-enhanced-ecommerce\/"},"modified":"2025-03-19T22:54:08","modified_gmt":"2025-03-19T22:54:08","slug":"measure-cart-value-in-enhanced-ecommerce","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=144574","title":{"rendered":"Measure Cart Value In Enhanced Ecommerce"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>One of the glaring omissions in the <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/enhanced-ecommerce\">Enhanced Ecommerce<\/a> reports of <a href=\"https:\/\/analytics.google.com\">Universal Analytics<\/a> is the ability to calculate <strong>cart value<\/strong> for products. <em>Cart value<\/em>, here, is the value that has been added to the cart.<\/p>\n<p>This value can be used to query for products that have the highest discrepancy between cart value and generated revenue. These are missed opportunities of the highest caliber.<\/p>\n<p>With some <strong>Custom Metrics<\/strong> magic, we can, however, get cart value into our reports, and we can find our most and least \u201ceffective\u201d products with just a glance:<\/p>\n<div style=\"aspect-ratio: 1688 \/ 476;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/cart-value.jpg\" title=\"Cart Value Google Analytics\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"476\" width=\"1688\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/cart-value.jpg#ZgotmplZ\" alt=\"Cart Value Google Analytics\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>As you can see, my most revenue-generating product, <strong>The Ahava Machine 2.0<\/strong>, also has the most value left in the shopping cart. This is more interesting to me than comparing the <strong>buy-to-detail<\/strong> and <strong>cart-to-detail<\/strong> ratios, as now I actually have a currency attached to the gap between purchases and cart interactions.<\/p>\n<p>It\u2019s very easy to setup. We will, of course, be using <a href=\"https:\/\/tagmanager.google.com\">Google Tag Manager<\/a>, here, but with a little tinkering you should be able to set it up with the on-page tracking code as well, if you are archaic enough to still use that. I\u2019m assuming here that you already have <strong>Enhanced Ecommerce<\/strong> setup through Google Tag Manager, and you have a valid <code>ecommerce.add<\/code> (and <code>ecommerce.remove<\/code>) object in <code>dataLayer<\/code> or returned with a <a href=\"https:\/\/www.simoahava.com\/analytics\/enhanced-ecommerce-with-a-custom-javascript-variable\/\">Custom JavaScript Variable<\/a>.<\/p>\n<p>To get things rolling, you need to create the Custom Metric itself. A <strong>product-scoped Custom Metric<\/strong> will be scoped to a single product in a single Enhanced Ecommerce interaction. So, if you send a product-scoped Custom Metric with a product object in the <code>ecommerce.add.products<\/code> Array, the metric can only be queried against that particular product. The metric itself will only apply to the Add To Cart interaction, but you can of course combine valid metrics for the same product as I have done in the screenshot above.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"create-the-custom-metric\">Create the Custom Metric<\/h2>\n<p>In the Property settings in your Google Analytics Admin, open <strong>Custom Definitions &gt; Custom Metrics<\/strong>, and click <strong>+ New Custom Metric<\/strong>.<\/p>\n<div style=\"aspect-ratio: 932 \/ 1170;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric.jpg\" title=\"New Custom Metric\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1170\" width=\"932\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric.jpg#ZgotmplZ\" alt=\"New Custom Metric\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>In the screen that opens, give the Custom Metric a name (I chose Cart Value), select <strong>Product<\/strong> as the scope and <strong>Currency (Decimal)<\/strong> as the type.<\/p>\n<div style=\"aspect-ratio: 628 \/ 926;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric-settings.jpg\" title=\"Custom Metric Settings\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"926\" width=\"628\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric-settings.jpg#ZgotmplZ\" alt=\"Custom Metric Settings\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Remember to make sure the Metric has <strong>Active<\/strong> checked, and then click <strong>Save<\/strong>.<\/p>\n<p>You should be back in the Custom Metrics screen. Make note of the <strong>Index<\/strong> the Custom Metric receives. You\u2019ll need this in a short while.<\/p>\n<div style=\"aspect-ratio: 1976 \/ 308;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric-list.jpg\" title=\"List of Custom Metrics\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"308\" width=\"1976\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/custom-metric-list.jpg#ZgotmplZ\" alt=\"List of Custom Metrics\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Next we\u2019ll head on over to Google Tag Manager, where we\u2019ll modify the <code>ecommerce.add<\/code> object to include the new Custom Metric with the value that was added to cart.<\/p>\n<h2 id=\"send-the-custom-metric-with-the-product-object\">Send the Custom Metric with the product object<\/h2>\n<p>Let\u2019s assume that your <code>ecommerce.add<\/code> object looks like this in <code>dataLayer<\/code>:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">dataLayer.push({\n  <span style=\"color:#a50\">'event'<\/span> : <span style=\"color:#a50\">'addToCart'<\/span>,\n  <span style=\"color:#a50\">'ecommerce'<\/span> : {\n    <span style=\"color:#a50\">'add'<\/span> : {\n      <span style=\"color:#a50\">'products'<\/span> : [{\n        <span style=\"color:#a50\">'id'<\/span> : <span style=\"color:#a50\">'42'<\/span>,\n        <span style=\"color:#a50\">'name'<\/span> : <span style=\"color:#a50\">'The Ahava Machine 2.0'<\/span>,\n        <span style=\"color:#a50\">'brand'<\/span> : <span style=\"color:#a50\">'AHAVA'<\/span>,\n        <span style=\"color:#a50\">'price'<\/span> : <span style=\"color:#a50\">'3999.90'<\/span>,\n        <span style=\"color:#a50\">'quantity'<\/span> : <span style=\"color:#a50\">'2'<\/span>,\n        <span style=\"color:#a50\">'variant'<\/span> : <span style=\"color:#a50\">'Awesome|Kick-ass'<\/span>\n      }]\n    }\n  }\n});\n<\/code><\/pre>\n<\/div>\n<p>So it\u2019s a fairly basic affair. With an object like this, you\u2019ll be able to track adds-to-cart no problem through Enhanced Ecommerce.<\/p>\n<p>But if we want to have the product-scoped Custom Metric there, we\u2019ll need to add <code>metricX<\/code> <em>into<\/em> the product object in the <code>products<\/code> Array like this:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">...\n<span style=\"color:#a50\">'products'<\/span> : [{\n  <span style=\"color:#a50\">'id'<\/span> : <span style=\"color:#a50\">'42'<\/span>,\n  <span style=\"color:#a50\">'name'<\/span> : <span style=\"color:#a50\">'The Ahava Machine 2.0'<\/span>,\n  <span style=\"color:#a50\">'brand'<\/span> : <span style=\"color:#a50\">'Ahava'<\/span>,\n  <span style=\"color:#a50\">'price'<\/span> : <span style=\"color:#a50\">'3999.90'<\/span>,\n  <span style=\"color:#a50\">'quantity'<\/span> : <span style=\"color:#a50\">'2'<\/span>,\n  <span style=\"color:#a50\">'variant'<\/span> : <span style=\"color:#a50\">'Awesome|Kick-ass'<\/span>,\n  <span style=\"color:#a50\">'metric1'<\/span> : <span style=\"color:#a50\">'7999.80'<\/span>\n}]\n...\n<\/code><\/pre>\n<\/div>\n<p>That would solve it. You\u2019d push the total value of the cart addition for that particular product into the Custom Metric at index <strong>1<\/strong> (which we got from previous chapter), after which you\u2019ll accumulate cart value for that particular product.<\/p>\n<p>On top of that, you\u2019d need to push a <strong>negative<\/strong> value for cart removals, right? So the <code>ecommerce.remove<\/code> object for when you want to remove one of the Ahava Machines (why would you, seriously?) looks like this:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">dataLayer.push({\n  <span style=\"color:#a50\">'event'<\/span> : <span style=\"color:#a50\">'removeFromCart'<\/span>,\n  <span style=\"color:#a50\">'ecommerce'<\/span> : {\n    <span style=\"color:#a50\">'remove'<\/span> : {\n      <span style=\"color:#a50\">'products'<\/span> : [{\n        <span style=\"color:#a50\">'id'<\/span> : <span style=\"color:#a50\">'42'<\/span>,\n        <span style=\"color:#a50\">'name'<\/span> : <span style=\"color:#a50\">'The Ahava Machine 2.0'<\/span>,\n        <span style=\"color:#a50\">'price'<\/span> : <span style=\"color:#a50\">'3999.90'<\/span>,\n        <span style=\"color:#a50\">'quantity'<\/span> : <span style=\"color:#a50\">'1'<\/span>,\n        <span style=\"color:#a50\">'metric1'<\/span> : <span style=\"color:#a50\">'-3999.90'<\/span>\n      }]\n    }\n  }\n});\n<\/code><\/pre>\n<\/div>\n<p>That way you\u2019ll have the correct balance in your Cart Value metric at all times.<\/p>\n<p>But this sucks! It sucks because <code>metric1<\/code> is <em>purely<\/em> for Google Analytics. It\u2019s not generic! <code>dataLayer<\/code> should be as generic as possible.<\/p>\n<p>So let\u2019s do what I did in <a href=\"https:\/\/www.simoahava.com\/analytics\/enhanced-ecommerce-with-a-custom-javascript-variable\/\">my previous article<\/a> about modifying the <code>ecommerce<\/code> object using a Custom JavaScript Variable. We\u2019ll add the Custom Metric <em>dynamically<\/em> using a Custom JavaScript Variable.<\/p>\n<p>How cool is that? I know, very cool.<\/p>\n<h2 id=\"modify-the-ecommerce-object-in-the-data-layer\">Modify the \u2018ecommerce\u2019 object in the Data Layer<\/h2>\n<p>First, you\u2019ll need to create a Data Layer Variable for the <code>ecommerce<\/code> object, just as I did in the article linked to a paragraph or two ago. It looks like this:<\/p>\n<div style=\"aspect-ratio: 756 \/ 902;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/dlv-ecommerce.jpg\" title=\"Data Layer Variable ecommerce\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"902\" width=\"756\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/dlv-ecommerce.jpg#ZgotmplZ\" alt=\"Data Layer Variable ecommerce\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>This will return the most recent <code>ecommerce<\/code> object stored in the Data Layer. Since we\u2019re working with the Add To Cart or Remove From Cart events, it will return the <code>ecommerce.add<\/code> or <code>ecommerce.remove<\/code> object, respectively. This makes sense, right?<\/p>\n<p>Next, we\u2019ll need a <strong>Custom JavaScript Variable<\/strong>, which adds the Custom Metric into the payload, and returns the modified <code>ecommerce<\/code> object to your Tag. You can name it whatever you want, e.g. <strong>{{JS &#8211; Modified EEC Cart Object}}<\/strong>. The Custom JavaScript would look like this:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\"><span style=\"color:#00a\">function<\/span>() {\n  <span style=\"color:#00a\">try<\/span> {\n    <span style=\"color:#00a\">var<\/span> index = <span style=\"color:#a50\">'1'<\/span>; <span style=\"color:#aaa;font-style:italic\">\/\/ Change to reflect the Custom Metric Index\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>    <span style=\"color:#00a\">var<\/span> ecom = {{DLV - ecommerce}};\n    <span style=\"color:#00a\">var<\/span> i, len, prefix, obj;\n    <span style=\"color:#00a\">if<\/span> (<span style=\"color:#a50\">'add'<\/span> <span style=\"color:#00a\">in<\/span> ecom) {\n      prefix = <span style=\"color:#a50\">''<\/span>;\n      obj = <span style=\"color:#a50\">'add'<\/span>;\n    } <span style=\"color:#00a\">else<\/span> <span style=\"color:#00a\">if<\/span> (<span style=\"color:#a50\">'remove'<\/span> <span style=\"color:#00a\">in<\/span> ecom) {\n      prefix = <span style=\"color:#a50\">'-'<\/span>;\n      obj = <span style=\"color:#a50\">'remove'<\/span>;\n    }\n    <span style=\"color:#00a\">if<\/span> (<span style=\"color:#00a\">typeof<\/span> prefix != <span style=\"color:#a50\">'undefined'<\/span>) {\n      <span style=\"color:#00a\">for<\/span> (i = <span style=\"color:#099\">0<\/span>, len = ecom[obj][<span style=\"color:#a50\">'products'<\/span>].length; i 1) {\n        ecom[obj][<span style=\"color:#a50\">'products'<\/span>][i][<span style=\"color:#a50\">'metric'<\/span> + index] =\n          prefix + (ecom[obj][<span style=\"color:#a50\">'products'<\/span>][i][<span style=\"color:#a50\">'price'<\/span>] *\n          ecom[obj][<span style=\"color:#a50\">'products'<\/span>][i][<span style=\"color:#a50\">'quantity'<\/span>]);\n      }\n    }\n    <span style=\"color:#00a\">return<\/span> {<span style=\"color:#a50\">'ecommerce'<\/span> : ecom};\n  } <span style=\"color:#00a\">catch<\/span>(e) {\n    <span style=\"color:#00a\">return<\/span> {<span style=\"color:#a50\">'ecommerce'<\/span> : {{DLV - ecommerce}}};\n  }\n}\n<\/code><\/pre>\n<\/div>\n<p>This piece of JavaScript takes the existing <code>ecommerce.add<\/code> or <code>ecommerce.remove<\/code> object, and cycles through all the products stored within. For each product, it calculates the product\u2019s <code>price<\/code> multiplied by its <code>quantity<\/code>. This gives the total value for that product in the cart interaction. This value is then stored in the <code>metricX<\/code>, and X is defined in the beginning using the <code>index<\/code> variable. The value is positive if it was an Add To Cart action, and negative if it was a Remove From Cart action.<\/p>\n<p>The Variable finally returns the modified <code>ecommerce<\/code> object, which is then used by your Tag as instructed in <a href=\"https:\/\/www.simoahava.com\/analytics\/enhanced-ecommerce-with-a-custom-javascript-variable\/\">this article<\/a>. If you can\u2019t bother to read through the linked article, you will need to change your Tags\u2019 Enhanced Ecommerce settings to not use the Data Layer, but rather retrieve the data from the Custom JavaScript Variable you just created.<\/p>\n<div style=\"aspect-ratio: 724 \/ 396;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/07\/tag-settings.jpg\" title=\"Tag Settings for custom javascript variable\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"396\" width=\"724\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/07\/tag-settings.jpg#ZgotmplZ\" alt=\"Tag Settings for custom javascript variable\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h2 id=\"summary\">Summary<\/h2>\n<p>The core of this article is really simple. Let\u2019s use a Custom Metric to fix a flaw in Enhanced Ecommerce reports of Universal Analytics. The flaw is that Cart Value isn\u2019t automatically calculated, as it would be <em>very<\/em> simple to do so with the existing dimensions and metrics.<\/p>\n<p>Cart Value lets us see how much value is left into the shopping cart when people are browsing on your site. When someone adds a product to the cart, the value added is automatically saved into the Custom Metric for that particular product in the Add To Cart action. When products are removed from the cart, their value is deducted from the Custom Metric.<\/p>\n<p>Using the product-scoped Custom Metric lets you then query the Custom Metric with the Product SKU or Name, for example, and you can combine total Product Revenue in the custom report as well, as in the screenshot at the very beginning of this article.<\/p>\n<p>The Custom JavaScript Variable method lets you add a lot of platform-specific flexibility to your Enhanced Ecommerce measurement. Let\u2019s just hope this is one of those articles that becomes obsolete soon, as Google Analytics hopefully introduces Cart Value as a default metric in the Enhanced Ecommerce reports!<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>One of the glaring omissions in the Enhanced Ecommerce reports of Universal Analytics is the ability to calculate cart value for products. Cart value, here, is the value that has been added to the cart. This value can be used to query for products that have the highest discrepancy between cart value and generated revenue. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":144575,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[10112,11161,14269,16556],"dealstore":[],"offerexpiration":[],"class_list":["post-144574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-cart","tag-ecommerce","tag-enhanced","tag-measure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Measure Cart Value In Enhanced Ecommerce - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=144574\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Measure Cart Value In Enhanced Ecommerce - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"One of the glaring omissions in the Enhanced Ecommerce reports of Universal Analytics is the ability to calculate cart value for products. Cart value, here, is the value that has been added to the cart. This value can be used to query for products that have the highest discrepancy between cart value and generated revenue. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=144574\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-19T22:54:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1688\" \/>\n\t<meta property=\"og:image:height\" content=\"476\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=144574#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Measure Cart Value In Enhanced Ecommerce\",\"datePublished\":\"2025-03-19T22:54:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574\"},\"wordCount\":1141,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg\",\"keywords\":[\"Cart\",\"ECommerce\",\"enhanced\",\"Measure\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=144574#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=144574\",\"url\":\"https:\/\/fivemor.com\/?p=144574\",\"name\":\"Measure Cart Value In Enhanced Ecommerce - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg\",\"datePublished\":\"2025-03-19T22:54:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=144574#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=144574\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=144574#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg\",\"width\":1688,\"height\":476},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=144574#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Measure Cart Value In Enhanced Ecommerce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Measure Cart Value In Enhanced Ecommerce - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=144574","og_locale":"en_US","og_type":"article","og_title":"Measure Cart Value In Enhanced Ecommerce - Som2ny Network","og_description":"One of the glaring omissions in the Enhanced Ecommerce reports of Universal Analytics is the ability to calculate cart value for products. Cart value, here, is the value that has been added to the cart. This value can be used to query for products that have the highest discrepancy between cart value and generated revenue. [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=144574","og_site_name":"Som2ny Network","article_published_time":"2025-03-19T22:54:08+00:00","og_image":[{"width":1688,"height":476,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=144574#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=144574"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Measure Cart Value In Enhanced Ecommerce","datePublished":"2025-03-19T22:54:08+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=144574"},"wordCount":1141,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=144574#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg","keywords":["Cart","ECommerce","enhanced","Measure"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=144574#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=144574","url":"https:\/\/fivemor.com\/?p=144574","name":"Measure Cart Value In Enhanced Ecommerce - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=144574#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=144574#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg","datePublished":"2025-03-19T22:54:08+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=144574#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=144574"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=144574#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/cart-value.jpg","width":1688,"height":476},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=144574#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Measure Cart Value In Enhanced Ecommerce"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/144574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144574"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/144574\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/144575"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144574"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=144574"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=144574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}