{"id":106970,"date":"2025-02-24T11:11:05","date_gmt":"2025-02-24T11:11:05","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/send-google-analytics-payload-length-as-custom-dimension\/"},"modified":"2025-02-24T11:11:05","modified_gmt":"2025-02-24T11:11:05","slug":"send-google-analytics-payload-length-as-custom-dimension","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=106970","title":{"rendered":"Send Google Analytics Payload Length As Custom Dimension"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>Maybe you knew this, maybe you didn\u2019t, but requests sent from your website (or app) to <a href=\"https:\/\/analytics.google.com\/\">Google Analytics<\/a> have a maximum size. Or, more specifically, the <em>payload<\/em> size (meaning the actual content body of the request) has a maximum.<\/p>\n<p>This maximum size of the payload is <strong>8192 bytes<\/strong>. This means, basically, that the entire parameter string sent to Google Analytics servers can be no longer than 8192 characters in length. The thing is, if the payload exceeds this, <strong>Google Analytics simply drops the hit<\/strong>. There\u2019s no warning, no error, nothing. The hit just doesn\u2019t get sent. If you are running the <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/google-analytics-debugger\/jnkmfdileelhofjcijamephohjechhna?hl=en\">Google Analytics debugger<\/a> browser extension, you <em>can<\/em> actually see a warning when the payload size is exceeded:<\/p>\n<div style=\"aspect-ratio: 1608 \/ 428;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2018\/04\/ga-maximum-payload-size.jpg\" title=\"Maximum Payload Size\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"428\" width=\"1608\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2018\/04\/ga-maximum-payload-size.jpg#ZgotmplZ\" alt=\"Maximum Payload Size\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>If you see this warning, it means that the hit was aborted due to exceeding the 8192 length of the payload.<\/p>\n<blockquote>\n<p>Note that if you are using <strong>Measurement Protocol<\/strong> to directly send data to Google Analytics, this size limitation applies to the <strong>POST request body<\/strong>. If you are sending the data with a GET request, the maximum size of the <strong>entire \/collect URL<\/strong> is <strong>8000 bytes<\/strong>.<\/p>\n<\/blockquote>\n<p>Anyway, in this article I\u2019ll show you how to send the payload size (or at least a very close approximation thereof) as a Custom Dimension to Google Analytics with each hit. That way you\u2019ll be able to check if you are approaching this limitation, and thus you can take precautions to avoid exceeding the maximum size. We\u2019ll get things done with <a href=\"https:\/\/www.simoahava.com\/analytics\/customtask-the-guide\/\"><code>customTask<\/code><\/a> (what else?) and <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a>.<\/p>\n<blockquote>\n<p><strong>UPDATE<\/strong>: Check out Angela Grammatas\u2019 <a href=\"https:\/\/angelagrammatas.com\/2018\/03\/13\/tracking-hit-size-in-gtm-with-the-ga-tasks-api\/\">excellent article<\/a> on the very same topic. She uses a slightly different tactic, appending the data in the <code>buildHitTask<\/code>, which works just as well.<\/p>\n<\/blockquote>\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=\"important-request\">IMPORTANT REQUEST<\/h2>\n<p>Before I get started, I have a request to make. Some time ago, I was contacted by someone (Googler, I think), who shared with me a similar solution. For the life of me, I can\u2019t find this communication anywhere, because I don\u2019t even remember what medium I was contacted over (I\u2019ve gone through my mailbox to no avail).<\/p>\n<p>This solution was definitely inspired by this person\u2019s idea, so I want to give credit where credit is due. So, if you remember approaching me with a solution you used to work on that did something similar, please be in touch and I will update this article with my thanks for your inspirational example.<\/p>\n<h2 id=\"send-the-hit-payload-length-using-customtask\">Send the hit payload length using <code>customTask<\/code><\/h2>\n<p>If you don\u2019t know what <code>customTask<\/code> is, please check out my <a href=\"https:\/\/www.simoahava.com\/analytics\/customtask-the-guide\/\">guide<\/a> on the topic. In a nutshell, <code>customTask<\/code> lets you modify, among other things, the request sent to Google Analytics <em>before<\/em> it is sent, adding information dynamically to the payload. This information could be anything from a <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/remove-pii-google-analytics-hits\/\">PII-purged payload<\/a> to the <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/use-customtask-access-tracker-values-google-tag-manager\/\">Client ID<\/a>.<\/p>\n<p><code>customTask<\/code> works with a <strong>Custom JavaScript variable<\/strong>. To send the hit payload length as a Custom Dimension, you\u2019ll first need to <a href=\"https:\/\/support.google.com\/analytics\/answer\/2709829\">create a new <strong>hit-scoped<\/strong> Custom Dimension<\/a> in Google Analytics admin. Once you\u2019ve created it, make note of the <strong>index<\/strong> assigned to the new dimension.<\/p>\n<div style=\"aspect-ratio: 1996 \/ 998;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2018\/04\/new-custom-dimension.jpg\" title=\"Custom dimension\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"998\" width=\"1996\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2018\/04\/new-custom-dimension.jpg#ZgotmplZ\" alt=\"Custom dimension\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Then, in Google Tag Manager, create a new <strong>Custom JavaScript variable<\/strong>. Name it something descriptive, e.g. <strong>customTask &#8211; hit payload length<\/strong>. This is what you should add within:<\/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:#aaa;font-style:italic\">\/\/ Change this index to match that of the Custom Dimension you created in GA\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>  <span style=\"color:#00a\">var<\/span> customDimensionIndex = <span style=\"color:#099\">10<\/span>;\n  \n  <span style=\"color:#00a\">return<\/span> <span style=\"color:#00a\">function<\/span>(model) {\n    \n    <span style=\"color:#00a\">var<\/span> globalSendTaskName = <span style=\"color:#a50\">'_'<\/span> + model.get(<span style=\"color:#a50\">'trackingId'<\/span>) + <span style=\"color:#a50\">'_sendHitTask'<\/span>;\n    \n    <span style=\"color:#00a\">var<\/span> originalSendHitTask = <span style=\"color:#0aa\">window<\/span>[globalSendTaskName] = <span style=\"color:#0aa\">window<\/span>[globalSendTaskName] || model.get(<span style=\"color:#a50\">'sendHitTask'<\/span>);\n    \n    model.set(<span style=\"color:#a50\">'sendHitTask'<\/span>, <span style=\"color:#00a\">function<\/span>(sendModel) {\n      \n      <span style=\"color:#00a\">try<\/span> {\n        \n        <span style=\"color:#00a\">var<\/span> originalHitPayload = sendModel.get(<span style=\"color:#a50\">'hitPayload'<\/span>);\n        \n        <span style=\"color:#00a\">var<\/span> hitPayload = sendModel.get(<span style=\"color:#a50\">'hitPayload'<\/span>);\n        <span style=\"color:#00a\">var<\/span> customDimensionParameter = <span style=\"color:#a50\">'&amp;cd'<\/span> + customDimensionIndex;\n      \n        <span style=\"color:#aaa;font-style:italic\">\/\/ If hitPayload already has that Custom Dimension, note this in the console and do not overwrite the existing dimension\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>      \n        <span style=\"color:#00a\">if<\/span> (hitPayload.indexOf(customDimensionParameter + <span style=\"color:#a50\">'='<\/span>) &gt; -<span style=\"color:#099\">1<\/span>) {\n          \n          console.log(<span style=\"color:#a50\">'Google Analytics error: tried to send hit payload length in an already assigned Custom Dimension'<\/span>);\n          originalSendHitTask(sendModel);\n        \n        } <span style=\"color:#00a\">else<\/span> {\n      \n        <span style=\"color:#aaa;font-style:italic\">\/\/ Otherwise add the Custom Dimension to the string\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>        <span style=\"color:#aaa;font-style:italic\">\/\/ together with the complete length of the payload\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>          hitPayload += customDimensionParameter + <span style=\"color:#a50\">'='<\/span>;\n          hitPayload += (hitPayload.length + hitPayload.length.toString().length);\n        \n          sendModel.set(<span style=\"color:#a50\">'hitPayload'<\/span>, hitPayload, <span style=\"color:#00a\">true<\/span>);\n          originalSendHitTask(sendModel);\n        \n        }\n      } <span style=\"color:#00a\">catch<\/span>(e) {\n       \n        console.error(<span style=\"color:#a50\">'Error sending hit payload length to Google Analytics'<\/span>);\n        sendModel.set(<span style=\"color:#a50\">'hitPayload'<\/span>, originalHitPayload, <span style=\"color:#00a\">true<\/span>);\n        originalSendHitTask(sendModel);\n        \n      }\n    });\n  };\n}\n<\/code><\/pre>\n<\/div>\n<p>To configure this <code>customTask<\/code>, you just need to update the <code>customDimensionIndex<\/code> variable with the index number of your Custom Dimension (in my example, the index is <code>10<\/code>).<\/p>\n<p>This function interrupts <code>sendHitTask<\/code>, which is the task used to actually send the request to Google Analytics. The payload sent to Google Analytics is appended with the Custom Dimension you have created, and the value of that Custom Dimension is set to the entire length of the payload. Thus, when a tag that uses this <code>customTask<\/code> fires, the request to Google Analytics will contain the length of the payload as the value of the Custom Dimension you assigned for it.<\/p>\n<p>To add it to your tag(s), either use a <a href=\"https:\/\/www.simoahava.com\/analytics\/google-analytics-settings-variable-in-gtm\/\">Google Analytics Settings variable<\/a> or <a href=\"https:\/\/www.simoahava.com\/analytics\/edit-google-analytics-tag-settings\/\">override the settings of any tag<\/a>. Scroll down to <strong>More Settings<\/strong> &gt; <strong>Fields to set<\/strong>, and add a new field.<\/p>\n<p><strong>Field name<\/strong>: customTask<br \/><strong>Value<\/strong>: {{customTask &#8211; hit payload length}}<\/p>\n<div style=\"aspect-ratio: 1792 \/ 906;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2018\/04\/fields-to-set.jpg\" title=\"Fields to set\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"906\" width=\"1792\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2018\/04\/fields-to-set.jpg#ZgotmplZ\" alt=\"Fields to set\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Now any tag that has this field set will add the hit payload length as a Custom Dimension to the request.<\/p>\n<p>You can verify this by opening the <strong>Network<\/strong> tab of your browser\u2019s developer tools. The tag is represented by a request to <code>\/collect<\/code>, and by clicking this request you can see that the Custom Dimension parameter is included with the length of the payload:<\/p>\n<div style=\"aspect-ratio: 2044 \/ 902;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2018\/04\/payload-length-custom-dimension.jpg\" title=\"Payload length in network requests\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"902\" width=\"2044\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2018\/04\/payload-length-custom-dimension.jpg#ZgotmplZ\" alt=\"Payload length in network requests\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h2 id=\"other-ideas\">Other ideas<\/h2>\n<p>You could actually rewrite the <code>customTask<\/code> to add some further logic if you are nearing the <strong>8192<\/strong> byte maximum size. For example, it doesn\u2019t really help you to add the payload length as a Custom Dimension, if the payload is never sent due to exceeding the size requirement.<\/p>\n<p>By adding some custom code, you could do things like:<\/p>\n<ol>\n<li>\n<p>When payload length is at or over 8192 bytes, drop unnecessary fields from the payload until the length is under the limit.<\/p>\n<\/li>\n<li>\n<p>When payload length is at or over 8192 bytes, send a new hit to Google Analytics which contains some key information from the \u201cbroken\u201d payload, just so that you\u2019ll get an idea of the scope of the problem.<\/p>\n<\/li>\n<\/ol>\n<p>A typical reason for exceeding payload length is if you are sending <a href=\"https:\/\/www.savio.no\/analytics\/easier-enhanced-ecommerce-product-promo-tracking\">Enhanced Ecommerce<\/a> impression data, or just very large shopping carts. It only takes something like 50-60 products for you to be approaching the limit of 8192 bytes. Unless you can decrease the size of the product payload using regular means, you could do something like drop all non-critical fields from the product objects (e.g. <code>brand<\/code>, <code>category<\/code>, <code>variant<\/code>), and just include the <code>id<\/code>, <code>name<\/code>, <code>price<\/code>, and <code>quantity<\/code>.<\/p>\n<p>Or you could drop all product data except for <code>id<\/code> in these cases, and then use <a href=\"https:\/\/support.google.com\/analytics\/answer\/6066852?hl=en&amp;ref_topic=6231233\">Data Import<\/a> to refresh the additional data.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>Well, it looks like <code>customTask<\/code> to the rescue again. It\u2019s such a powerful feature, and I just love the fact that you can get all <em>meta<\/em> with your Google Analytics data.<\/p>\n<p>Peppering the payload with details that are otherwise obfuscated is a great way to add a whole new level of debugging opportunities to your data collection.<\/p>\n<p>Hit payload size limit is nasty in that you won\u2019t be alerted if a problem surfaces. The Google Analytics UI won\u2019t be able to inform you about this problem because the requests are never sent to GA in the first place. With this Custom Dimension, you can add this information to the payload as a Custom Dimension, and then prepare in advance for the eventuality that you might be hitting the payload maximum size sometime soon.<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Maybe you knew this, maybe you didn\u2019t, but requests sent from your website (or app) to Google Analytics have a maximum size. Or, more specifically, the payload size (meaning the actual content body of the request) has a maximum. This maximum size of the payload is 8192 bytes. This means, basically, that the entire parameter [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":106971,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[12765,834,34452,1531,400,48221,11285],"dealstore":[],"offerexpiration":[],"class_list":["post-106970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-analytics","tag-custom","tag-dimension","tag-google","tag-length","tag-payload","tag-send"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Send Google Analytics Payload Length As Custom Dimension - 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=106970\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send Google Analytics Payload Length As Custom Dimension - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Maybe you knew this, maybe you didn\u2019t, but requests sent from your website (or app) to Google Analytics have a maximum size. Or, more specifically, the payload size (meaning the actual content body of the request) has a maximum. This maximum size of the payload is 8192 bytes. This means, basically, that the entire parameter [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=106970\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-24T11:11:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1608\" \/>\n\t<meta property=\"og:image:height\" content=\"428\" \/>\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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=106970#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Send Google Analytics Payload Length As Custom Dimension\",\"datePublished\":\"2025-02-24T11:11:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970\"},\"wordCount\":1124,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg\",\"keywords\":[\"Analytics\",\"Custom\",\"Dimension\",\"Google\",\"Length\",\"Payload\",\"send\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=106970#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=106970\",\"url\":\"https:\/\/fivemor.com\/?p=106970\",\"name\":\"Send Google Analytics Payload Length As Custom Dimension - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg\",\"datePublished\":\"2025-02-24T11:11:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=106970#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=106970\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=106970#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg\",\"width\":1608,\"height\":428},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=106970#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send Google Analytics Payload Length As Custom Dimension\"}]},{\"@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":"Send Google Analytics Payload Length As Custom Dimension - 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=106970","og_locale":"en_US","og_type":"article","og_title":"Send Google Analytics Payload Length As Custom Dimension - Som2ny Network","og_description":"Maybe you knew this, maybe you didn\u2019t, but requests sent from your website (or app) to Google Analytics have a maximum size. Or, more specifically, the payload size (meaning the actual content body of the request) has a maximum. This maximum size of the payload is 8192 bytes. This means, basically, that the entire parameter [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=106970","og_site_name":"Som2ny Network","article_published_time":"2025-02-24T11:11:05+00:00","og_image":[{"width":1608,"height":428,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=106970#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=106970"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Send Google Analytics Payload Length As Custom Dimension","datePublished":"2025-02-24T11:11:05+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=106970"},"wordCount":1124,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=106970#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg","keywords":["Analytics","Custom","Dimension","Google","Length","Payload","send"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=106970#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=106970","url":"https:\/\/fivemor.com\/?p=106970","name":"Send Google Analytics Payload Length As Custom Dimension - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=106970#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=106970#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg","datePublished":"2025-02-24T11:11:05+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=106970#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=106970"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=106970#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/ga-maximum-payload-size.jpg","width":1608,"height":428},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=106970#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Send Google Analytics Payload Length As Custom Dimension"}]},{"@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\/106970","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=106970"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/106970\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/106971"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=106970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=106970"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=106970"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=106970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}