{"id":1638,"date":"2024-10-07T17:17:15","date_gmt":"2024-10-07T16:17:15","guid":{"rendered":"https:\/\/organicdigital.co\/blog\/?p=1638"},"modified":"2025-12-02T17:36:52","modified_gmt":"2025-12-02T17:36:52","slug":"how-to-implement-revenue-tracking-on-square-space","status":"publish","type":"post","link":"https:\/\/daveashworth.co\/blog\/how-to-implement-revenue-tracking-on-square-space\/","title":{"rendered":"How To: Implement Revenue Tracking On Square Space"},"content":{"rendered":"\n<p>One of the tasks that keeps me busiest these days as a <a href=\"https:\/\/daveashworth.co\/skills\/analytics-and-ad-tracking-consultant\/google-analytics-4\/\">GA4 Consultant <\/a>is ensuring accurate user and revenue tracking is in place, not just for GA4 but for other <a href=\"https:\/\/daveashworth.co\/skills\/analytics-and-ad-tracking-consultant\/\">3<sup>rd<\/sup> party tracking scripts<\/a> as well. &nbsp;Now as much as I like a challenge, Square Space really does throw up one that shouldn\u2019t even be a challenge in the first place.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/daveashworth.co\/blog\/how-to-implement-revenue-tracking-on-square-space\/#The_Issue\" >The Issue<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/daveashworth.co\/blog\/how-to-implement-revenue-tracking-on-square-space\/#The_Solution\" >The Solution<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Issue\"><\/span>The Issue<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Out of the box, Square Space GA4 tracking offers standard user tracking and the most basic of ecommerce tracking by tracking purchases and which items were bough, but doesn\u2019t track the associated revenue \u2013 which leads to a mostly useless report such as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"776\" height=\"277\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/no_revenue_data.png\" alt=\"GA4 Product Data\" class=\"wp-image-1639\" style=\"width:770px;height:auto\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/no_revenue_data.png 776w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/no_revenue_data-300x107.png 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/no_revenue_data-150x54.png 150w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/no_revenue_data-768x274.png 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/figure>\n\n\n\n<p>The only question I have is, Why Not?<\/p>\n\n\n\n<p>Why even bother tracking any ecommerce at all if you not going to do the fundamentals.<\/p>\n\n\n\n<p>The good news is, it can be fixed, but you have to do it yourself.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Solution\"><\/span>The Solution<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>I spent a lot of time looking for answers, but few were forthcoming.&nbsp; I found an article from 2023 suggesting there was a &nbsp;hidden JS object you could interrogate as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Y.Squarespace.CommerceAnalytics._yuievt.events&#91;\"commerceTrack:commerce-checkout-confirmed\"].details&#91;0] <\/code><\/pre>\n\n\n\n<p>But it didn\u2019t work.<\/p>\n\n\n\n<p>And then I stumbled across this gem of an article by <a href=\"https:\/\/www.tayloreddata.com\/\" target=\"_blank\" rel=\"noopener\">Taylor Martin<\/a> who has put some bespoke code together.&nbsp; The full article is here:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.tayloreddata.com\/blog\/how-to-track-ga4-ecommerce-events-on-your-squarespace-website\" target=\"_blank\" rel=\"noopener\">The Complete GA4 Ecommerce Setup Guide for Squarespace Using Google Tag Manager<\/a><\/p>\n\n\n\n<p>I won\u2019t go into too much detail here as Taylor\u2019s article covers it all but in summary, there is custom HTML and recommend triggers you can implement via <a href=\"https:\/\/daveashworth.co\/skills\/google-tag-manager-consultant\/\">Google Tag manager<\/a> which will help you track:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View Item List<\/li>\n\n\n\n<li>View Item<\/li>\n\n\n\n<li>Select Item<\/li>\n\n\n\n<li>Add to Cart<\/li>\n\n\n\n<li>Remove from Cart<\/li>\n\n\n\n<li>View Cart<\/li>\n\n\n\n<li>Begin Checkout<\/li>\n\n\n\n<li>Purchase<\/li>\n<\/ul>\n\n\n\n<p>There are a couple of things to note \u2013 these are in some cases based on specific Square Space elements and naming conventions being visible on the page.&nbsp; Therefore this may not work if you directly copy the code, and you may need to tweak to match the layout and css of your specific square space theme \u2013 but, do that, and you\u2019re good.<\/p>\n\n\n\n<p>And on my site, we now have items viewed and revenue tracking in place.&nbsp; Add to cart doesn\u2019t due to how the site functions but ultimately it\u2019s the revenue we wanted:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"773\" height=\"341\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/revenue_data.png\" alt=\"Revenue Data\" class=\"wp-image-1640\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/revenue_data.png 773w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/revenue_data-300x132.png 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/revenue_data-150x66.png 150w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2024\/10\/revenue_data-768x339.png 768w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>So there you go \u2013 I love blog posts that folk do like this, they can be absolute game changers for you or your client\u2019s marketing efforts.&nbsp; If you need any assistance implementing this, feel free to get in touch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Struggling with missing revenue tracking on SquareSpace? While it offers basic GA4 tracking out of the box, it omits crucial ecommerce revenue data. Learn how to implement a custom solution using Google Tag Manager to track key metrics like item views, purchases, and more, ensuring your reports are accurate and complete.<\/p>\n","protected":false},"author":1,"featured_media":1641,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,15,11],"tags":[],"class_list":["post-1638","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tag-manager","category-analytics","category-magento"],"_links":{"self":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts\/1638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/comments?post=1638"}],"version-history":[{"count":3,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts\/1638\/revisions"}],"predecessor-version":[{"id":1827,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts\/1638\/revisions\/1827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/media\/1641"}],"wp:attachment":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/media?parent=1638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/categories?post=1638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/tags?post=1638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}