Enabling Google Analytics for your Ecwid store

Connect your Ecwid store to the free and powerful Google Analytics service to have access to lots of stats and get insights into how your existing and potential customers find and use your store. You can connect your store to Universal Google Analytics (using a "UA-" ID) or to brand-new Google Analytics 4 (using a "G-" ID that is now created by default).

Google Analytics 4 and Universal Analytics are completely different versions of Google Analytics. Unlike Universal Analytics that is based on sessions and pageviews, Google Analytics 4 is based on events and parameters. They have different sets of reports, and, while Universal Analytics has more built-in reports that can be set up out of the box, Google Analytics 4 allows you more flexibility with custom report templates.

If you are not sure whether you should use Universal Analytics or Google Analytics 4, you can read this comparison by Google →

Creating a Google Analytics account

If you already have a Google Analytics account, you can proceed to the next section and connect it to your Ecwid store.

If you don’t have a Google Analytics account, follow these steps to create it:

  1. Go to https://marketingplatform.google.com/about/analytics
  2. Click Start for Free in the top right corner.
  3. Sign in to your Google Account or create a new Google/Gmail account.
  4. Click Start Measuring.
  5. Fill in your Account name.
  6. Under Account Data Sharing Settings, check the boxes next to the options that you want.
  7. Click Next to create a property.
  8. Enter the property name (you can choose a name that suits you).
  9. Choose a reporting time zone and currency.
  10. (optional) By default, only a Google Analytics 4 property is created. If you want to create a Universal Analytics property (along with or instead of GA4), make sure to:
    • Click Show advanced options:

      Enabling_Google_Analytics_for_store__8_.png

    • Enable the Create a Universal Analytics property toggle
    • Enter your Website/Instant Site URL:

      Enabling_Google_Analytics_for_store__4_.png

    • Choose your option: Create both a Google Analytics 4 and a Universal Analytics property or Create a Universal Analytics property only
  11. Click Next.
  12. Fill out data about your business, if you want.
  13. Click Create.
  14. Agree with the Google Analytics Terms of Service Agreement that opens.
  15. Google Analytics will generate a Measurement ID for you — copy it for later use:

    Enabling_Google_Analytics_for_store__13_.png

    In case you created both a Google Analytics 4 and a Universal Analytics property, you can always access your “UA-” ID on the Admin → Property Settings page of your Universal Analytics property. If you choose to create only a Universal Analytics property, you will see your “UA-” ID generated by the end of account creation.

You can also check with Google instructions on how to get started →

Now you have a Google Analytics property for your site and can copy the ID and add it to your Ecwid admin panel to link both. Read on to learn how.

Connecting your store to Google Analytics

It is really easy to connect your Ecwid store to your Google Analytics account. You can choose to use a Google Analytics 4 (a "G-" ID) property or a Universal Google Analytics (a "UA-" ID) property.

In case you were using Universal Analytics in your store and now want to switch to Google Analytics 4, you need to create a GA4 property first.

To connect via a Google Analytics 4 property:

  1. Sign in to your Google Analytics account.
  2. In the menu on the left, click Admin.
  3. Choose your account and your GA4 property:

    Enabling_Google_Analytics_for_store__6__.png

  4. Proceed to Admin → Data Streams.
  5. Click on the stream of your store/website:

    Enabling_Google_Analytics_for_store__12_.png

  6. Copy the Measurement ID:

    Enabling_Google_Analytics_for_store__13_.png

  7. From your Ecwid admin, go to Settings → General → Tracking & Analytics.
  8. Paste your Measurement ID in the Google Analytics ID field:

    Enabling_Google_Analytics_for_store__3_.png

  9. Click Save or press Ctrl + S to save the changes.

That’s it. You’ve connected your Ecwid store to Google Analytics 4.

Now the following events can be tracked:

  • page_view — views of store pages
  • view_item_list (with parameters) — views of product categories, favourites or search results
  • view_item (with parameters) — views of any product details page
  • search (with search_term parameter) — searches by keyword
  • login (with method parameter) — logins into customer accounts
  • add_to_wishlist (with parameters) — when someone adds a product to favourites
  • add_to_cart (with parameters) — when someone adds a product to cart
  • remove_from_cart (with parameters) — when someone removes a product from cart
  • share (with method and content_id parameters) – when someone shares a product using share buttons
  • begin_checkout (with parameters) — when someone begins checkout
  • add_shipping_info — when someone chooses a shipping method and proceeds with checkout
  • add_payment_info (with parameters) — when someone chooses a payment method and presses the “Place Order” button
  • purchase (with parameters) — when someone places an order

You can find these events on the Events page in your Google Analytics account. If you click an event in the table, you will see a detailed report for this event. You can also mark events as conversions in this table so that they appear in the conversions report on the Conversions page, or create custom reports using events in Analysis → Analysis Hub. Events also appear in the Engagement section reports.

Note that the first results in Google Analytics reports will appear in about 24 hours.

Related articles

Getting reports using Universal Analytics
Understanding Google Analytics reports
Basic reports and sales stats
Analytics and reporting apps from Ecwid app market

Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
90 out of 112 found this helpful
10
We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.
Accept cookies Decline