Skip to main content

Analytics and Cookie Consent

CoreLast updated Nov 30, 2026Screenshots from EverShop 2.4

Connect your EverShop storefront to Google Analytics 4 to see your visitors and sales. Then choose when Google may set cookies.

Before you start​

  • Google Analytics 4 (GA4) is Google's service that counts the visitors of a website and what they do. EverShop has it built in.
  • You need a Google Analytics account with a property for your store. The property needs a web data stream for your store's address.
  • EverShop connects to one GA4 property, by its Measurement ID. A Measurement ID starts with G-, for example G-A1B2C3D4E5.
  • EverShop adds the Google tag to your storefront itself. Do not add Google's install code to your theme as well. If a developer already added Google Analytics or Google Tag Manager, ask them first. Otherwise GA4 can count every visit twice.
  • A cookie banner asks visitors to accept or decline cookies. Laws such as the GDPR (General Data Protection Regulation) of the European Union can require one. Check which rules apply to your store. A developer adds the banner to your storefront.
  • Only storefront pages load Google Analytics. The admin panel never does.

Find your Measurement ID​

  1. Sign in to Google Analytics and open the property for your store.
  2. Go to Admin, then Data streams, and click your web stream.
  3. Copy the Measurement ID from the stream details.

In EverShop, point at the ? icon next to Google Analytics 4 Measurement ID to see the same path.

The field accepts only a GA4 Measurement ID, or nothing. Capital or small letters both work. A Google Tag Manager ID, which starts with GTM-, does not work. For any other value, the field shows "Enter a valid GA4 Measurement ID, e.g. G-XXXXXXXXXX" when you click Save Settings. Nothing on the card is saved then.

Connect Google Analytics​

  1. Go to Setting › Store Setting.

  2. Scroll down to Analytics, at the end of the Store Settings card.

  3. In Google Analytics 4 Measurement ID, enter your Measurement ID.

  4. In Cookie consent, choose an option. See Cookie consent options.

  5. Click Save Settings. This button saves every field of the Store Settings card.

EverShop shows "Saved successfully!". From the next page that a shopper opens, Google Analytics runs on your storefront.

Cookies let Google Analytics recognize a visitor who comes back. The Cookie consent field decides whether Google may set these cookies before the shopper agrees. EverShop does this with Google Consent Mode. Google Consent Mode is the way a website tells Google's tags what the visitor allowed.

OptionWhat EverShop tells GoogleWhat Google Analytics does
Not required: collect from the first page (the default)Nothing about consent.It sets its cookies on the first page and collects every visit.
Required: no cookies until the shopper acceptsBefore Google Analytics starts: analytics cookies and advertising cookies are not allowed.It sets no cookies. It still receives page views and events, without cookies, but your reports show few of them. When the shopper accepts in your cookie banner, the banner tells Google. Google then sets its cookies.

How Required works with a cookie banner:

  • Choose Required when your store has a cookie banner that supports Google Consent Mode. Examples are Cookiebot, OneTrust and CookieYes. A developer adds the banner to your storefront.
  • With Required and no such banner, no shopper can accept. Your reports then stay almost empty.
  • Google waits up to half a second for your banner before it sends the first data.
  • When your banner already sends Google its own default, EverShop keeps the banner's default and adds none.

Which option you need depends on the laws for your store and your shoppers.

What EverShop sends to Google Analytics​

Besides page views, EverShop sends the GA4 shopping events in this table. GA4 uses them in its ecommerce reports.

When the shopperGA4 event
Opens any storefront pagepage_view, sent by Google's tag itself
Opens a product pageview_item
Adds a product to the cartadd_to_cart
Removes a product from the cartremove_from_cart
Opens the cart page with products in itview_cart
Opens the checkoutbegin_checkout
Chooses a shipping methodadd_shipping_info, with the method's name
Places the orderadd_payment_info, with the payment method's name
Opens the order confirmation pagepurchase, with the order number
  • Each shopping event has the currency, a value and the products. For each product, GA4 gets the SKU (the product code), name, price after discount, quantity and category.
  • The value is the price of the products after discount. It never includes shipping.
  • In the purchase event, the value never includes tax. GA4 uses this value as the revenue of the order. So the revenue in Google Analytics is lower than your order totals in EverShop.
  • In the other events, the value can include tax when your catalog prices include tax.
  • The purchase event also has the tax, the shipping cost and the coupon code.
  • The shopper's browser sends purchase once per order. Opening the confirmation page again in the same browser sends nothing.
  • The cart and order events include the coupon code.

Check that Google Analytics works​

  1. Open your storefront in a browser. With Required, accept cookies in your cookie banner.
  2. In Google Analytics, open the Realtime report. Your visit shows there after a short time.
  3. Optional: add a product to the cart. The event add_to_cart shows in the same report.

Other Google Analytics reports can take a day or more to show new data.

Turn off Google Analytics​

  1. Go to Setting › Store Setting.
  2. In Analytics, clear Google Analytics 4 Measurement ID.
  3. Click Save Settings.

Your storefront then loads nothing from Google and sends no data. Cookies that Google Analytics already set stay in shoppers' browsers until they expire.

What your customers see​

Shoppers see no change on your storefront. Google Analytics works in the background. When a developer adds a cookie banner to your storefront, shoppers see that banner.

Settings on this page​

FieldWhat it doesDefault
Google Analytics 4 Measurement IDThe ID of your GA4 web data stream, such as G-A1B2C3D4E5. Empty turns Google Analytics off.Empty
Cookie consentWhether Google may set cookies before the shopper accepts. See Cookie consent options.Not required: collect from the first page

Troubleshooting​

Why does Google Analytics show no visits?​

  • The Measurement ID belongs to another property or data stream. Compare it with the ID in Google Analytics.
  • Cookie consent is Required, and your store has no cookie banner. Your reports then stay almost empty.
  • Your browser blocks Google Analytics, for example with an ad blocker. Test in another browser.

Why does Google Analytics show fewer orders or less revenue than EverShop?​

  • The revenue in Google Analytics has no tax and no shipping. See What EverShop sends to Google Analytics.
  • The shopper's browser sends the purchase event on the order confirmation page. If the shopper leaves before that page opens, Google gets no purchase.
  • Ad blockers and some browsers block Google Analytics.
  • With Required, Google counts shoppers who did not accept cookies only in part.

Why are visits and sales counted twice?​

Two Google tags on your storefront send the same data. This happens when your theme or Google Tag Manager also loads GA4 with the same Measurement ID. Keep one of them: clear the ID in EverShop, or ask your developer to remove the other tag.

Next steps​

For developers​

To load a cookie banner before Google Analytics, see Commerce Events: Cookie consent. For the event details, and to send the same events to another tool, see Commerce Events: Google Analytics 4.