JasonGee1 Posted August 10, 2022 Posted August 10, 2022 I am trying to set up ecommerce tracking using GTM. I have injected the code in the header and footer (in the code injection area). Do I need to add a dataLayer code as well in the confirmation page as well? And will squarespace allow this code to fire on the confirmation page? I have read the best way to do it is input your Measurement ID key in the integration and squarespace should be passing the transaction info through to your Google Analytics property, but mine isn't showing any transaction in either UA or GA4 through this method.
CreativeTechProfessional Posted September 19, 2022 Posted September 19, 2022 Hi @JasonGee1, How is the setup going? Do you have a goal in mind of what you'd like to track? I'm working with an e-commerce brand to set up a Pinterest tracking pixel through GTM, and it sounds like we're working on similar things! I haven't seen any recommendations as far as putting GTM on the confirmation page. In regards to my application, I didn't find the datalayer codes helpful.
TayloredData Posted December 28, 2023 Posted December 28, 2023 (edited) Hi @JasonGee1 @CreativeTechProfessional Squarespace nor Google makes GA4 tracking easy! 🤦🏾 I was struggling with this same problem, and recently figured out how to implement GA4 ecommerce tracking on my website. Now I'm able to measure how many people view my products, select a item, add to cart, remove from cart, begin checkout, and make a purchase in GA4: To make it easier for other Squarespace users, I created a GitHub repo for folks to simply copy and paste the code into their own Google Tag Manager containers: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website. But since this is custom code, please test and ensure it works for your website. Let me know if you have any questions! Edited January 6 by TayloredData Data Nerd 🧑🏾💻| I help businesses transform data into actionable insights & sales | Chat with me about your website + marketing analytics challenges: TayloredData.com Grab the Ultimate Guide to Tracking Squarespace Ecommerce Events in Google Analytics 4 Prefer video tutorials? Check out my latest marketing and web analytics how to videos
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment