Track Store Events with Google Analytics

Enabling Google Analytics for your StoreFront provides you with detailed statistics about StoreFront events while the customer is shopping and during the checkout process. To take advantage of Google Analytics for your StoreFront, you first have to enable Google Analytics in the site editor and then enable eCommerce tracking in your Google Analytics account.

If you do not already have a Google Analytics account, create an account for Universal Google Analytics or the newer Google Analytics 4. To learn about the differences between the two, see Universal Analytics versus Google Analytics 4 Data.

Enable Google Analytics for Your Site

To enable Google Analytics in the editor:

  1. In the side panel, click Settings, and then click the Google Analytics tab.
  2. Enter your Google Analytics code. If you are using Universal Analytics, the code will start with “UA”. If you are using Google Analytics 4, the code will start with “G”.
  3. Type Enter to confirm.

Once Google Analytics is enabled for your site it is automatically connected to your StoreFront.

Note

If you receive an invalid account error message, this means your Google Analytics account is invalid, misspelled, or you are using the wrong code. We recommend copying and pasting the code directly from your Google Analytics account to avoid errors.