May 26, 2020

Weebly Google Analytics for ECommerce broken or not working? Here's the fix...

Weebly Google Analytics for ECommerce broken or not working? Here's the fix...

Show me the money!

Google Analytics Ecommerce Tracking

You would think setting up Weebly / Square Online Store for Google Analytics ECommerce would be trivial.  Everyone uses Google Analytics, and the Weebly, now Square Online Store, team wants to support this very common tool.

Well, it's not.  Weebly's support for Google Analytics is broken, but through correct configuration can work better.

The Weebly / Square Online Store team has a bunch of blog entries like "Setting up Google Analytics" or "Weebly Getting Started With Google Analytics".  All of this information is either outdated, simply wrong, or missing a vital bit of information.

This Grandpa spent hours diving through documentation, posting in the community forum, and finally had to bust out my mad Javascript skills (hopefully the sarcasm there is obvious) to see what Weebly really was doing with the Google Analytics Id.

So, here's what you do:

  1. Go get your google property tracking Id.  This is typically a string something like "UA-123456789-0".  Setting up the Google Analytics account is beyond the scope of this article.  I'm trying to address the very specifics of the Square Online Store and Google Analytics.
  2. Login to your Square Online Store (previously called Weebly).  Probably and select Online Store.
  3. Navigate to Website -> Integrations and enter you're tracking id you identified above including the UA-.

4. Navigate to Settings -> General and scroll all the way down to the tracking section.  It will ask for a "Google Analytics Tracking ID".  Enter the Google Property tracking ID you noted above but WITHOUT the UA-. This is critical!

Now, Google Analytics, and more importantly, the Google Analytics Ecommerce sections with have data populated in them.  So you can track Ecommerce Conversion Rate, Transaction Count, and Revenue for your Square Ecommerce / Weebly site within Google Analytics.

So, this solution works pretty well now the Weebly / Square Online Store is actually using the correctly formed Google Analytics Property Id.  However, there are a few things that don't work.

  1. Product level reporting simply doesn't work. Weebly/Square Ecommerce only reports a single product for any given order. Maybe there's a way to fix this, but I haven't taken the time to reverse engineer it.
  2. The Weebly / Square Ecommerce dates don't match up with a Google Analytics dates. So if you're comparing transactions for a specific day, the totals don't match up. It appears Google Analytics will include some transactions in multiple single days, but doesn't double count them for longer date ranges.

Anyway, I hope this was helpful and the information is very accurate as of 5/26/2020 because I just did it all for my wife's website.  That said, it's really just a test of some useful content to see if I can get Google to send people here.