Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Google Analytics 4 (GA4) in your Shoporama store

How to set up Google Analytics 4 in your Shoporama store. Built-in GA4 integration with ecommerce events, server-side tracking, and Consent Mode v2.

Reading time: about 18 minutes
Store owner

Why use Google Analytics 4 for your online store?

Google Analytics 4 (GA4) shows you what happens in your online store. You can see which pages people visit, where they come from, which products they look at, and how many of them end up buying. That gives you a solid basis for decisions about marketing, your product range, and the user experience.

Shoporama has a built-in GA4 integration, so you do not have to deal with code, scripts, or tags. You simply enter your Measurement ID, and Shoporama handles the rest for you. Ecommerce events and Consent Mode are included automatically, and server-side tracking can be turned on as an add-on.

The easy way: Shoporama's built-in GA4 integration

The recommended way to set up GA4 is through Shoporama's own tracking module. It takes a few minutes, and you get accurate tracking from day one.

Step 1: Create a GA4 property in Google Analytics

  1. Sign in at analytics.google.com
  2. Click Admin (the gear icon in the lower-left corner) and choose Create property
  3. Follow the guide, choose Web as the platform, and enter your store's URL and name
  4. When your data stream has been created, your Measurement ID is shown. It starts with G- followed by a series of characters
  5. Copy your Measurement ID. You will need it in the next step

Step 2: Enable tracking in Shoporama

  1. Log in to your Shoporama admin
  2. Go to Webshop in the left sidebar (the section with the gear icon) and choose Tracking
  3. Check Enable tracking
  4. Choose whether you want to enable server-side tracking and Consent Mode (more about both further down). Consent Mode requires the store to have a cookie banner, such as Shoporama's free Cookie Consent app
  5. Under Platforms, check Google GA4
  6. In the Measurement ID field, paste your ID in the format G-xxxxxxxx
  7. Click Save

That is all. Shoporama automatically adds what is needed to your store and starts sending data to GA4. You do not need a developer, and you do not have to paste scripts anywhere.

The Tracking page in the Shoporama admin with the Measurement ID field under Google GA4 highlighted with a red frame and filled in with a GA4 ID starting with G-
The Measurement ID field under Google GA4 on the Tracking page. This is where you paste your GA4 Measurement ID, which starts with G-, and click Save.

Ecommerce events are sent automatically

Once GA4 is enabled, Shoporama automatically sends the most important ecommerce events to Google. You do not need to configure anything in GA4 beyond creating your property. The following events are sent:

  • view_item_list - when a customer views a category page or a landing page with products
  • view_item - when a customer opens a product and views the details
  • view_cart - when the customer views the contents of their cart
  • add_to_cart - when a product is added to the cart
  • begin_checkout - when the customer starts checkout and the address page is shown
  • add_shipping_info - when the customer has filled in their address and the page where shipping and payment are chosen is shown
  • add_payment_info - when the customer has chosen shipping and payment and moves on (with the name of the payment method)
  • purchase - when an order is completed (with order value, products, and VAT)

With these events you get access to all of GA4's ecommerce reports out of the box, including conversion rate, average order value, most popular products, and the entire customer journey from first visit to purchase.

See where customers drop off in checkout

Because the checkout steps are sent with GA4's own standard names, GA4's checkout report (Checkout journey) shows each step of checkout. You can see how many drop off on the address page, how many drop off on the shipping and payment page, and how many drop off afterward, for example at the approval or payment step. You do not need to set anything up in Shoporama to get this. If you cannot find the report in the GA4 menu, you can add it from GA4's report library.

One limitation: in Shoporama, the customer chooses shipping and payment on the same page. GA4 therefore cannot tell the difference between a customer who dropped off when choosing shipping and a customer who dropped off when choosing payment. Both count as drop-offs on the shipping and payment page.

Server-side tracking gives more accurate measurement

Shoporama offers server-side tracking, where the browser sends data to your own tracking subdomain, and from there it is forwarded to GA4 and your other platforms. This solves several well-known problems with traditional client-side tracking.

The benefits of server-side tracking:

  • Ad blockers block data less often. When measurement runs through your own subdomain, the browser sees it as part of your store and not as a third party
  • More accurate numbers. Browser limitations such as ITP and Safari restrictions affect measurement less, because the cookies are set from your own domain
  • Better conversion tracking. Fewer events are lost. How many more conversions you see depends on your customers and their browsers

You enable server-side tracking by checking Enable server-side tracking on the Tracking page. You also need to create the DNS records the page shows with your DNS provider. For a new tracking domain, that is an A record, an AAAA record, and a CNAME record. The status changes to Ready when DNS is set up correctly.

Cost price and gross profit

GA4 receives the revenue from your purchases, but not the cost price or gross profit. If you want to see profit broken down by traffic source, you can use the order export in Shoporama. See how in the article about server-side tracking.

Consent Mode v2 and GDPR

GA4 may only set cookies if visitors have given their consent. That requires Consent Mode v2, which is Google's framework for handling consent correctly.

When you check Use Consent Mode on the Tracking page, the following happens automatically:

  • GA4 only fires full events when visitors have accepted cookies
  • With Shoporama's cookie consent, nothing is sent to GA4 until the customer has made a choice in the banner. If the customer declines, anonymous signals without cookies are sent, so you still get an estimate of the traffic
  • The traffic source is kept when the page reloads after the customer's choice, so visits from Google, for example, are still recorded as organic traffic
  • Shoporama's built-in cookie consent solution sends consent signals directly to Google
  • Statistics and marketing cookies are only set after consent

If you use a third-party cookie banner such as Cookiebot or Cookie Information, make sure it supports Google Consent Mode v2. Shoporama's own solution handles this out of the box. If the store has no cookie banner at all, customers cannot give consent, and then nothing is sent to GA4 from the browser when Consent Mode is turned on. Read more in Cookie consent and Consent Mode v2.

Alternative: use Google Tag Manager

If you already have a GTM container, or you need to send data to many different platforms through the same container, you can use Google Tag Manager. It is not needed to make GA4 work in Shoporama, but it gives you flexibility if you work with advanced measurement or third-party tools.

How to set up GTM

  1. Create an account and a web container at tagmanager.google.com
  2. Note your GTM container ID in the format GTM-xxxxxxx
  3. In Shoporama, go to Webshop in the left sidebar and choose HTML fields
  4. Paste the GTM code into the field for the head section and the noscript part into the body field (follow Google's instructions)
  5. Create a GA4 Configuration tag in GTM with your Measurement ID, and trigger it on All Pages
  6. Enable Send e-commerce data on the GA4 tag, so Shoporama's dataLayer events are passed on

Shoporama automatically pushes ecommerce events to the dataLayer, so GTM can pick them up and forward them to GA4. If you have already configured server-side tracking in Shoporama and also use GTM, be careful that events are not sent twice. Contact support if you are unsure.

Check that it works

Once you have saved your Measurement ID, you can test that data is coming in:

  1. Open your store in a regular browser window (not incognito), and accept cookies if Consent Mode is active. If the store has no cookie banner at all, no data is sent when Consent Mode is turned on, see the section about Consent Mode
  2. Click around: open a product, add it to the cart, and go to checkout
  3. Sign in to GA4 and go to Reports » Realtime
  4. You should see your own activity within a minute or two
  5. To test ecommerce events, you can use GA4's DebugView together with the Google Analytics Debugger extension in Chrome

Ecommerce reports (the Monetization section in GA4) typically take 24-48 hours to fill up with data the first time.

Related topics

Frequently asked questions

Do I have to pay for Google Analytics 4?

Google Analytics 4 is free for the vast majority of online stores. Tracking in Shoporama is included in your subscription, including Consent Mode and the integration with the largest ad platforms. Server-side tracking is a paid monthly add-on on both Pro and Flex. You can find the current prices at https://www.shoporama.io/price.

Where do I find the Tracking menu item in the admin?

In the Shoporama admin, you find it in the left sidebar under Webshop (the section marked with a gear icon). Click Webshop to expand the menu, and choose Tracking.

Do the GA4 numbers match my orders in Shoporama?

GA4 shows how many purchases have been recorded through tracking, which does not always match the number of orders in Shoporama 100 percent. The differences are typically caused by visitors who have declined cookies, users with ad blockers, or network errors. Server-side tracking reduces the part caused by ad blockers and browser limitations. Customers who have declined cookies only send anonymous signals to GA4. For accounting and bookkeeping, always use the orders in Shoporama, not GA4.

Why is so much of my traffic "Unassigned" in GA4?

GA4 puts every visit into a channel, such as Email, Affiliates, or Organic Search. When a visit comes from a link with UTM parameters, the value of utm_medium decides the channel. If GA4 doesn't recognize the value, the visit and any purchase end up in the Unassigned channel. The source is still recorded. Add the dimension Session source / medium to the Traffic acquisition report to see where the traffic comes from.

Common examples:

  • The Danish wishlist service Ønskeskyen sends visits with utm_medium=partner. GA4 only puts utm_medium=affiliate in Affiliates.
  • Klaviyo accounts with older UTM settings send utm_medium=campaign or flow. The Email channel requires email.
  • ChatGPT adds utm_source=chatgpt.com to links, but no utm_medium.

You fix this in GA4 under Admin » Data display » Channel groups. Create a new channel group, add a channel with the condition Medium = partner, and move it to the top, because GA4 uses the first channel that matches. You can apply the group to your historical data by choosing it as a dimension in a report. If you make it your primary channel group, reports use it by default from then on. If you use Klaviyo, set utm_medium to email under Settings » Other » UTM tracking. This only applies to emails sent from then on. Channel groups only change your GA4 reports, not your Google Ads campaigns.

In Shoporama, you can always see where an order came from in the Reference column in the order list and in the order export, even for customers who declined cookies. Read more about the order list.

I have switched from Universal Analytics. What should I do?

Google has shut down Universal Analytics completely. You need to create a brand-new GA4 property and enter your new Measurement ID in Shoporama. The old UA tracking ID in the format UA-xxxxxx no longer works. Historical data from UA is only available as an export.

Should I use both Shoporama's built-in GA4 and Google Tag Manager?

No, that is not necessary. Shoporama's built-in GA4 integration is enough for most online stores. GTM only makes sense if you are already used to it, or if you need to send data to many different third-party tools such as Hotjar, Microsoft Clarity, and similar. If you use both the built-in GA4 and GTM with a GA4 tag, you risk getting events recorded twice.

Does server-side tracking affect the speed of my store?

Not noticeably. The store loads the same tracking in the browser whether or not server-side tracking is turned on. The difference is that the script is loaded from your own tracking subdomain once the DNS status shows "Ready".

What happens to my data if the customer declines cookies?

With Consent Mode v2, anonymous signals about the visit are still sent to Google, so you get an estimate of the traffic. Detailed ecommerce events and user behavior from the browser are, however, only recorded for customers who have accepted cookies. If you use server-side tracking, the purchase itself is still sent from Shoporama's server to Meta and Pinterest when the order has been paid. GA4 only receives the purchase from the browser.

Can I exclude my own visits from GA4 data?

Yes. Go to Admin in GA4, choose your data stream, and create an internal traffic filter based on your IP address. You can also install the browser extension Google Analytics Opt-out in the browser you use to manage your store.

Can I send GA4 data on to Google Ads?

Yes. In GA4, you can link your property to your Google Ads account under Admin » Product Links. This lets you import conversions and use GA4 audiences in Google Ads campaigns. Shoporama also has a separate Google Ads integration on the Tracking page that sends conversions directly to Google Ads. If you also fill in your Google Merchant Center ID, and Merchant Center knows your cost prices, Google Ads can show gross profit per campaign and product. Read more about gross profit in Google Ads.

How quickly does my data show up in GA4?

Activity appears in the Realtime report almost immediately (typically within a minute). Most reports are updated with a delay of 24-48 hours. Ecommerce reports can take up to 48 hours to fill up completely the first time you enable GA4.

Need help?

If you get stuck with the setup or have questions about the data you see in GA4, you are always welcome to write to support@shoporama.dk. We are happy to help you get everything in place.