Integrations

Google Analytics 4 for Shopify

You run ads, write newsletters and maintain your store, but you are not sure which of it brings orders. We connect Google Analytics 4 to your Shopify store and check whether the numbers are right.

Signs that your measurement is off

Google Analytics 4, GA4 for short, is Google’s free analytics tool. It replaced its predecessor Universal Analytics in July 2023. In many stores it was set up in a hurry back then and has not been checked since. Typical consequences:

  • Analytics shows visitors, but no revenue or far too little.
  • Orders appear twice because GA4 is integrated both through the Google channel and through old code in the theme.
  • A large share of purchases is attributed to “Direct” or to the payment provider instead of the ad that brought the customer.
  • The cookie banner is there, but Analytics measures regardless of what the visitor clicks.
  • The theme still contains Universal Analytics code that has done nothing since 2023.

Every one of these points leads you to make decisions on a false basis: you stop a campaign that is actually worthwhile, or spend money on one that brings nothing.

What you learn with GA4

Source
Through which channels visitors come: search, ads, newsletter, social networks.
Behavior
Which products are viewed, added to the cart and bought, and where visitors drop off.
Devices
How visitors differ on smartphone and desktop. GA4 can recognize a user across several devices.
Google Ads
Purchases can be passed to Google Ads so that campaigns are optimized for revenue instead of clicks.

GA4 works with events: every action by a visitor, such as a product view, a click on “Add to cart” or a purchase, is recorded as an individual event. That is the most important difference from its predecessor, which thought in pageviews and sessions. Anyone who knows Universal Analytics from before will therefore find the reports hard to navigate at first.

The practical benefit: if you run ads on several channels, GA4 shows which channel only brings visitors and which brings purchases, and you can distribute your budget accordingly.

How GA4 is connected to Shopify

For this, Shopify provides the Google & YouTube sales channel. You install the app, connect your Google account and select the GA4 property, that is, the data account for your store. Shopify then transmits the important events of an online store on its own, including product views, carts and purchases.

Two things you should know:

  • As long as your store is password protected, Analytics records nothing. This mainly affects stores shortly before launch.
  • Old analytics code in the theme or in the checkout settings must be removed. Otherwise, things are counted twice.

The connection itself is made in a few minutes. The work lies in what comes after.

What else we check

Google Analytics may only measure once the visitor has consented. Your cookie banner must pass the decision on to Shopify, and Shopify must report it to Google. We test both cases: if the visitor declines, nothing may be sent, and if they consent, everything must arrive.

Revenue and orders

We compare the purchases in GA4 with the orders in Shopify. Some gap is unavoidable because not every visitor consents. But it should be even across all payment methods. If, for example, almost all purchases of a certain payment method are missing, it is usually because customers are not cleanly returned to the store after payment.

A related error: customers briefly switch to the payment provider’s site to pay, and Analytics treats the return as a new visit from there. The purchase is then attributed to the payment provider instead of the ad or the newsletter. An entry in GA4’s settings fixes that.

If you use Google Shopping and Google Ads, you should link Analytics to them. For organic search, Search Console belongs in the mix. It shows which search terms your store is found with and thus complements the work on your Shopify SEO.

Do you need GA4 at all?

GA4 is worthwhile if

  • you spend money on ads and want to know what it brings
  • you compare several channels with each other
  • you work with Google Ads
  • someone on your team looks at the numbers regularly

Shopify’s reports are enough if

  • your store lives mainly on repeat customers and referrals
  • you run no paid advertising
  • nobody has time to get to grips with GA4

An analytics account that nobody looks into brings nothing and still requires consent. In that case, we advise leaving it out.

How we set up Google Analytics 4

  1. Assessment. We check what is currently integrated in your store: GA4, old code, other pixels.
  2. Clean up. Duplicate and outdated integrations are removed.
  3. Set up. We connect GA4 through the Google channel and link it to Google Ads and Search Console.
  4. Check. Test orders with and without consent show whether the measurement is right.
  5. Explain. You learn which three or four reports really matter for your store.

FAQ

Frequently asked questions

How do I connect Google Analytics 4 to Shopify?

Through the Google & YouTube sales channel. You install the app, sign in with your Google account and select your GA4 property. A Merchant Center account is not required for this. As long as the store is password protected, no data is collected.

Do I need a cookie banner for Google Analytics?

Yes. For visitors from the EU, Google Analytics may only collect data once the visitor has consented. The cookie banner must pass this decision on to Shopify and to Google. We check whether that actually works this way technically in your store.

Why does Google Analytics show less revenue than Shopify?

That is normal. Analytics does not capture visitors without consent or visitors with ad blockers, whereas Shopify counts every order. Some deviation therefore always remains. If a lot is missing, if a payment method is missing entirely or if orders show up twice, there is an error in the setup.

Aren't Shopify's reports enough?

For many smaller stores, yes. Shopify shows revenue, orders and the main visitor sources. Google Analytics is worthwhile if you compare several advertising channels, work with Google Ads or want to understand behavior before purchase in more detail.

Contact

Are the numbers in your analytics account correct?

Tell us briefly what you need. You will get a reply from someone who would also build your project.

Phone
+49 (0) 30 – 40 36 38 90Mon–Fri 9:00 a.m.–4:30 p.m. (CET)