Jump to content

TayloredData

Member
  • Posts

    23
  • Joined

  • Last visited

Posts posted by TayloredData

  1. @marcuslieder @millagorilla, I would recommend using Google Tag Manager for this instead of directly injecting this code to your website. GTM has easy to use templates where you can just create a trigger to fire this tag on a certain page or action, and GTM creates the snippet for you.

    Here's a quick guide about how to add Google Analytics through Google Tag Manager on a Squarespace website. It's a similar process for Google Ads, Facebook Ads, etc.

    or if you're a video person:

     

    Let me know if you have any questions!

  2. On 4/15/2024 at 1:11 AM, Auvz said:

    Hi, by "code" - how is this done? 

    Hi @Auvz, I recommend using a tool called Google Tag Manager to add Google Analytics to your website (and all of your other marketing code/tags).

    I recommend adding Google Analytics this way vs. using Squarespace's GA integration for a few reasons:


    Here's a quick guide about how to add Google Analytics through Google Tag Manager on a Squarespace website

    or if you're a video person:

     

    cc: @Admacg73

  3. 39 minutes ago, kate_frances_designs said:

    Thank you so much for this info Taylor. It is THE most helpful resource I've come across to date. I do have a question though - I keep getting this message and I'm not sure what to do to resolve it. Any help would be appreciated.

    Unknown variable “DLV - item_variant_color” found in a tag. Edit the tag and remove the reference to the unknown variable.

    You're welcome and I'm glad you find it helpful! You need to go into your GA4 ecommerce tag and remove 

     "item_variant_color" as a parameter since you aren't using it in your code. Once you delete that parameter and save your tag, you shouldn't see that error again. I've highlighted what you need to remove in my screenshot below:

    image.thumb.png.3a0fab15831d4f5a8abe3688d251735a.png

  4. On 1/20/2024 at 4:04 PM, sanfly said:

    @TayloredData Thanks for your blog post, I'm looking through it now.  Is it missing where you set the data layer variables though? 

    I see them in the screenshot for "Tag Configuration" under Event Parameters eg: {{DLV - item_variant_size}}. However I can't see anywhere where you set these variables? 

    I'm fumbling my way through this so not sure if I'm on the right track here!  Would it be something like:

     

    1. Name: DLV - item_variant_size

      • Type: Data Layer Variable

      • Variable Name: ecommerce.item_variant_size

    Hi @sanfly, you're on the right track! The variable name would be item_variant_size 😊

    image.png.ad56ae6a43d4f71d29d9c39ffb38d06a.png

    I've updated my blog post to include setting up the data layer variables in Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website#ecommerce-event-parameters

  5. On 1/23/2024 at 2:22 AM, GlynMusica said:

    I thought that the problem was that you could not get a GTM to fire on the page where the purchase values are unloaded. Can you confirm that is still the case.

    Hi @GlynMusica that's not the case. You can't load GTM on the secure checkout page (the page where the user pays) since it's a third party payment system, but you can load GTM on the confirmation page where the purchase values are.

    Here's a screenshot of my purchase confirmation page with the GTM debugger open. You can see that I'm able to push the purchase data to the data layer:

    screenshotpurchasegtmdebugger.thumb.png.80412a6db059a01cb162673ddd9ac58f.png

  6. Hi @DavidA888

    You should be able to do something like: 

    Fire this trigger when an Event occurs and all of these conditions are true

    • Click Classes > contains > cart-checkout-button
    • Click Classes > contains > shopify-buy__btn


    Additionally, I create a guide to track ecommerce events--including add to cart and checkout--on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  7. Hi @safarih,

    I created a guide to track ecommerce events--including checkout--on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    The code I wrote, creates data layer pushes for each ecommerce event that you can then send to Google Analytics, Google Ads, etc.

    You can simply copy and paste the code into your own Google Tag Manager containers, just test and ensure it works for your website 🙂

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  8. @Arch-kid @polvoleather

    I create a guide to track ecommerce events--including add to cart--on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    You can simply copy and paste the code into your own Google Tag Manager containers, just test and ensure it works for your website 🙂

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  9. it looks like you were having issues in Universal Analytics, but just in case you're having similar issues with GA4, I wanted to share the custom code and guide I created to track ecommerce on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    You can simply copy and paste the code into your own Google Tag Manager containers, just test and ensure it works for your website 🙂

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  10. Hey  @LianLim @ParadiseTechsoft @mafzal @jqarthur

    it looks like y'all were having issues in Universal Analytics, but just in case you're having similar issues with GA4, I wanted to share the custom code and guide I created to track ecommerce on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    You can simply copy and paste the code into your own Google Tag Manager containers, just test and ensure it works for your website 🙂

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  11. Hey @Boffix @LianLim @ZachFrantz @JJLeathersmith

    it looks like y'all were having issues in Universal Analytics, but just in case you're having similar issues with GA4, I wanted to share the custom code and guide I created to track ecommerce on Squarespace sites using Google Tag Manager: https://www.tayloreddata.com/blog/how-to-track-ga4-ecommerce-events-on-your-squarespace-website

    You can simply copy and paste the code into your own Google Tag Manager containers, just test and ensure it works for your website 🙂

    Once I implemented this code, 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Let me know if you have any questions!

  12. Hi @Nickrj Squarespace nor Google makes Google Analytics ecommerce tracking easy 🤦🏾--but it is possible!

    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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    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. Feel free to use this code on your own website, but since this is custom code, please test and ensure it works for your website 🙂

    Let me know if you have any questions!

  13. Hi @finidush, I don't have a member area but I was able to figure out how to track ecommerce in the regular Squarespace ecommerce functionality. Maybe taking a look at my code will help you repurpose it for the member areas?

    With my custom code I'm now 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    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. Feel free to use this code on your own website, but since this is custom code, please test and ensure it works for your website 🙂

    If you aren't able to repurpose it for the member areas, let me know if you'd like to set up a consulting call for us to figure it out together! 

    -Taylor

  14. Hi @Pixi, Squarespace nor Google makes ecommerce 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

    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. Feel free to use this code on your own website, but since this is custom code, please test and ensure it works for your website 🙂

    Let me know if you have any questions!

  15. Hi @peyo, did you figure out your tracking issue? I found that I needed to write my own custom code in order to get all of the data I needed in GA4 since Squarespace only sends a limited number of data points in their built-in integration.

    With my custom code 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

     

    Since the secure checkout is a third-party website, we're unable to add tracking to that page, but my code covers all other purchase flow pages.

    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. Feel free to use the code if you think it would be helpful 🙂

    But since this is custom code, please test and ensure it works for your website.

    Let me know if you have any questions!

  16. 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

    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!

  17. Hey @ebba_emilia 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:

    Analytics_Purchasejourney-ga4.thumb.png.a95632a908c6e3908040609fecb75487.png

     

    ecommerce-purchase-journey-ga4-exploration-report.thumb.png.78d3d8d061ff61ce02cf64c5f0122b4a.png

    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

    Let me know if you have any questions!

  18. Hi y'all!

    I am trying to identify and then exclude my internal traffic from my Google Analytics reports. I know Squarespace Analytics has a mechanism to identify internal website traffic, but I can't figure out what cookie or mechanism it is.
     

    I imagine there should be some sort of flag when I am logged into Squarespace and on the production version of my website.

    Any ideas on how to identify my internal traffic?

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.