Server-side tracking in Shoporama: GA4, Meta, and Google Ads
A complete guide to server-side tracking in Shoporama. Better data quality, fewer conversions lost to ad blockers, and product IDs that match your feed.
Server-side tracking gives you more complete data on your conversions. The purchase is sent directly from Shoporama's server as soon as the order is paid, and tracking in the browser goes through your own tracking subdomain, so less data is lost to ad blockers. In this article, you'll learn what server-side tracking is, how it works in Shoporama, and how to set it up step by step.
Good to know before you start
- Server-side tracking is a paid add-on on both Pro and Flex. You can find the current price at https://www.shoporama.io/price. The fee is added on top of your regular subscription, and if it has been turned on for part of a month, you pay for the whole month.
- If you know your way around server-side tracking, you can set up your own solution instead of ours.
- If you use both your own solution and ours, we don't provide support, since the two easily conflict. Choose one solution.
- You must use Google Analytics 4 (GA4) to use Shoporama's server-side tracking.
What is server-side tracking?
Traditional tracking happens in the customer's browser. Pixels and scripts from Google, Meta, and others are loaded, and data is sent directly from the browser to each platform. The problem is that ad blockers, browser restrictions, and strict cookie rules increasingly stop those signals. The result is unreliable numbers, poor ad optimization, and lower ROAS.
With server-side tracking in Shoporama, tracking from the browser goes through your own tracking subdomain instead of directly to Google, for example, and the purchase is sent directly from Shoporama's server as soon as the order is paid. This gives you more complete data and better control over what is shared and when.
How Shoporama's solution works
When you activate the service, Shoporama automatically sets up your tracking subdomain on Shoporama's tracking server. The server comes with a shared, preconfigured tag setup that forwards data to the platforms you choose. You don't have to build, host, or maintain anything yourself.
It's the purchase that is sent directly from Shoporama's server. The other events, such as product views and add to cart, start in the customer's browser and go through your tracking subdomain. The Meta pixel and the LinkedIn Insight Tag still send from the browser.
What happens if the user only accepts necessary cookies? If the user chooses "necessary only", we only use cookies to handle the shopping cart. These are purely functional cookies that the store can't work without. If you have turned on Use Consent Mode, the Meta and LinkedIn pixels don't fire in the browser, and no marketing cookies are set.
We can still send the purchase to Meta, Pinterest, and Google Ads without cookies when a purchase is completed. This is done through server-side events to Meta and Pinterest and through Google Ads Offline Conversions.
An example: A customer completes a purchase. Shoporama now knows the customer's email. We can send it to Google and Meta along with a message that the user has completed a purchase worth X DKK. This happens without cookies, but you must of course describe this type of tracking in your privacy policy.
If the customer has accepted cookies, the purchase is sent twice: once from the customer's browser and once from Shoporama's server when the order is paid. Both events are sent with the same event ID, namely the order number, and the platforms use it to remove duplicates. GA4 only receives the purchase from the customer's browser.
Same product ID as your product feed
All tracking events use the same product ID as your Google Shopping feed. This applies both to the events sent from the customer's browser and to the purchase sent from the server. By default, the ID is the product's numeric ID, and for variants it's the product ID and the variant ID separated by a colon (for example 154585:45789). If your store runs language or country feeds, the item number (SKU) is used instead, since it's the stable key across your country stores.
Because events and feed always use the same ID, your purchases and product views match the product catalog at Meta and Google 1:1. This is a requirement for dynamic remarketing and catalog ads to work. You can read much more in the article about product IDs and catalog matching.
A bundle is sent as a single line item with the bundle price. The underlying products are listed at DKK 0 on the order and aren't sent as products, either from the server or from the browser.
Profit by traffic source
GA4 receives the purchase from the customer's browser with the revenue, but without cost price and contribution margin, because everything in the purchase sent from the browser can be seen by the customer. If you want to see profit broken down by traffic source, you can use the order export. Go to Orders, choose Order export, enter From and To, and click Download CSV file. The file has the columns Profit and Reference. Reference shows where the customer came from, for example Google Ads or Google (organic), regardless of whether the customer has accepted cookies. The file has one row per order, so you total the numbers per source yourself in a spreadsheet, and it shows the source, not the individual campaign.
The profit requires that the cost price is filled in on all products in the order and that your user role has access to Cost of Goods Sold and Gross Profit. The amount you have entered in the field Standard shipping cost without VAT under Webshop → General is also deducted. Orders without a known source, such as direct visits, have no reference, and this can be a large share of the orders.
Google Ads can also show gross profit per campaign and product. This requires that you fill in Google Merchant Center ID on Tracking and that Merchant Center knows your cost prices. Read more about gross profit in Google Ads.
Step 1: Activate server-side tracking in Shoporama
Go to Tracking in the admin and check "Enable tracking". Then check "Enable server-side tracking".
Once you have activated it, Shoporama suggests a tracking domain. If your store is called mystore.com, for example, we suggest a.mystore.com. You can also choose your own subdomain.

Step 2: Create DNS records with your domain provider
Once you have entered your tracking domain and clicked Save, Shoporama shows the DNS records you need to create. Create exactly the records shown in the table on the Tracking page. For new tracking domains, there are three records:
- A record on your tracking subdomain (for example a.mystore.com) pointing to Shoporama's tracking IP. The exact IP address is shown on the page.
- AAAA record on the same tracking subdomain pointing to the tracking server's IPv6 address. IPv6 is the newer, longer type of IP address with colons instead of periods. The address is shown on the page. Copy it exactly as shown, without a trailing period.
- CNAME record on load.<your subdomain> (for example load.a.mystore.com) pointing to Shoporama's tracking infrastructure. The value is shown on the page.
Important: Always follow the table on the Tracking page. Some older tracking domains only need an A record and a CNAME, and then the table only shows those two. If the AAAA record is in the table, you must create it. Otherwise, your tracking domain won't be approved.
The exact values are shown directly on the Tracking page in Shoporama, and you can copy them with one click. You create the records with the provider that manages your DNS. If you're not sure where that is, you can look up your domain at punktum.dk (the registry for .dk domains).
When all records have been created and have propagated, the DNS status on the Tracking page changes to "Ready". Until then, it shows a status such as "verifying". The status is fetched every time you open the Tracking page, and you can click "Update" to check again. If a record is missing or has the wrong value, the Tracking page shows a yellow box that tells you which record it is, and the row in the table is marked with "Check".
Until the status shows Ready: Tracking is sent to your tracking subdomain as soon as you have saved it. Until the DNS status shows "Ready", data from the browser can therefore be lost, and the same applies to the purchase from the server, which is also sent to the subdomain. Create the DNS records as soon as you have turned on server-side tracking.
If it says "Not created", your tracking domain hasn't been set up on the tracking server yet. This happens at the next sync, which runs once an hour. If the status doesn't change to "Ready" within 24 hours after you have created the records, write to support@shoporama.dk, and we'll look into it.
Step 3: Choose what to track
On the Tracking page, you choose what to track. On the left side, it's important that you select "Server-side tracking" and Google GA4. These are the only ones that are required.
When you select a tracking channel, the related fields appear. If you want to track Meta/Facebook, for example, we ask for your Facebook Pixel ID and a Facebook Access Token (Conversions API).
In addition, you, or whoever manages your Google Ads account, should fill in:
- Google Ads Conversion ID
- Google Ads Conversion Label (Purchase)
Here's where to find your Conversion ID and Conversion Label:

If you want to use Google Ads Offline Conversions
Offline conversions can be sent to Google Ads in two ways. With the CSV file, Google fetches your orders itself, and this requires neither access to your Google Ads account nor the fields below. See Offline conversions for Google Ads and Microsoft Ads.
With upload via the Google Ads API, Shoporama's server sends the purchase to Google Ads shortly after the order is paid. This requires server-side tracking and a few more fields, which you'll find in the Google Ads card under Offline Conversions (Advanced) on Tracking. You can find your Conversion Action ID in the URL of the individual conversion in Google Ads:

What is the Google Ads Operating Customer ID?
It's the customer ID of the Google Ads account that holds your ads and conversions. The field must always be filled in for upload via the API. If it's empty, the purchases can't be sent.
If Shoporama has direct access to the ad account, enter the same customer ID in both Customer ID and Operating Customer ID. If we only have access through an MCC account (Manager Account), for example at your agency, Customer ID is the MCC account's ID, and Operating Customer ID is the ad account's ID. Enter only the digits in both fields, for example 1234567890 and not 123-456-7890.
Upload via the API requires that you invite ads@shoporama.dk as an administrator on your Google Ads account. It's a bit more complicated to set up than the CSV file, but the purchase comes in faster. Once you have invited us, let us know so we can accept the invitation.
Setting up your Google Ads account
You can create an extra conversion action in Google Ads where you import your offline conversions. Then you have one that counts purchases from the website and one that counts purchases from the import. Only one of them can be primary. Set the website action as primary and the import action as secondary, as in the image below. If both are primary, every purchase counts twice.

Create a Conversion Action of the type "Import from clicks". If you use the CSV file, it must be named Purchase, exactly like that. Here's what the setup looks like:

You create both actions in the same place in Google Ads, as Website and Import respectively:

Avoid counting purchases twice
If you use both Shoporama's purchase tracking (Conversion Label - Purchase) and offline conversions, you have two conversion actions in Google Ads that measure the same purchases: one of the type Website and one of the type Import from clicks. Only one of them can be primary. If both are primary, Google adds them together, and every purchase counts twice.
This doesn't just affect the reports. Automated bid strategies such as target ROAS bid based on the primary conversions. If Google thinks each click generates twice as much in sales as it actually does, it bids more per click, and your budget covers fewer clicks.
We recommend that the website action is primary and the import action is secondary. The website action records the purchase immediately, while the import from the CSV file only comes in when Google fetches the file, typically once a day (with upload via the API, shortly after payment). You can still see a secondary action in the All conv. column, but Google doesn't use it when bidding.
Here's how to make the import action secondary:
- Go to Goals > Conversions > Summary in Google Ads.
- Click the purchase action of the type Import from clicks.
- Click Edit settings, and change the action from Primary to Secondary.
- Click Save.
If a campaign uses a custom conversion goal instead of the account's default goals, that goal may still include the import action. In that case, also check the campaign's goal. If you only use offline conversions and not Conversion Label - Purchase, the import action should of course be primary.
When you make the change
If both actions have been primary, the number of conversions and the ROAS in Google Ads drop to roughly half from the day you make the change. These are the correct numbers, not a drop in sales. If you leave your ROAS target as it is, Google now actually requires that return and bids lower per click. This gives you cheaper clicks, but it can also give you fewer. If the campaigns don't spend the budget in the following weeks, you can lower the target a little at a time.
Microsoft Ads offline conversions
In addition to Google Ads, Shoporama also supports offline conversions for Microsoft Ads. When a customer clicks a Microsoft ad, we save the click ID (msclkid) on the order and send it back when the purchase is made.
Activate Microsoft Ads under Tracking to get a CSV URL with a username and password. Set up automatic import in Microsoft Ads to match conversions with ad clicks. See the separate article Google and Microsoft Ads offline conversions for a complete guide.
Frequently asked questions
What does server-side tracking actually do for my store?
Server-side tracking sends the purchase directly from Shoporama's server as soon as the order is paid, and lets tracking in the browser go through your own tracking subdomain. This means fewer purchases and events are lost to ad blockers and browser restrictions. How many more conversions you see in Meta and Google Ads depends on your customers and their browsers.
Do I need to create an AAAA record?
Yes, if it's in the table on the Tracking page. All new tracking domains need an A record, an AAAA record, and a CNAME record. If the AAAA record is missing, the domain won't be approved, and the Tracking page shows a yellow box about it. Some older tracking domains manage with an A record and a CNAME, and then the table only shows those two.
This only applies to the tracking subdomain (for example a.mystore.com). The store's own domain should still not have an AAAA record. You can read more about this in the Shoporama Academy under Custom domain and SSL.
Does server-side tracking bypass ad blockers?
Partly. The purchase to Meta and Pinterest is sent from Shoporama's server, so an ad blocker can't stop it. Tracking from the browser goes through your own tracking subdomain (for example a.mystore.com) instead of to well-known third-party domains like google-analytics.com, so it's blocked less often. However, the Meta pixel and the LinkedIn Insight Tag still send from the browser directly to Meta and LinkedIn.
Does server-side tracking affect my page speed?
Not noticeably. The store loads the same Google Tag Manager setup 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 when the DNS status shows "Ready", and that the purchase is also sent from the server.
Is server-side tracking GDPR-compliant?
Server-side tracking isn't automatically GDPR-compliant, but it gives you better tools to comply with the rules. You have full control over which data is passed on. With Consent Mode, tracking in the browser respects the customer's choice in the cookie banner. The purchase itself, however, is sent from the server with the customer's contact details, even when the customer has rejected cookies, as described under "necessary only" above. Always remember to describe your tracking in your privacy policy.
Should I use Consent Mode?
Yes, if you want to comply with European law. First, make sure the store has a cookie banner: Shoporama's free Cookie Consent app or another banner that supports Google Consent Mode v2, such as Cookie Information, Cookiebot, or Openli (formerly Legalmonster). Then check Use Consent Mode under Tracking. Without a banner, customers can't give consent, and then no tracking is sent from the browser. If you use a banner other than Shoporama's, test that data comes into Google Analytics, for example, after you have accepted cookies yourself. If you use a custom-built or less well-known solution, you have to pass on the consent yourself. See the code below.
What exactly is Consent Mode?
Consent Mode means that we respect the user's choice in the cookie banner. If the user rejects marketing cookies, cookies are limited, and only anonymized signals are sent from the browser. If you use a solution that doesn't pass on the consent itself, you can do it with the code below. It must run when the customer has made a choice in the banner, and again on every page view if the customer has already chosen. Run it only after the page has loaded, not at the top of the page. The values must be granted or denied according to the customer's choice. First the consent is updated in Google Consent Mode, and then Shoporama's tracking is notified:
<script>
window.dataLayer = window.dataLayer || [];
window.gtag = window.gtag || function () { window.dataLayer.push(arguments); };
// 1. Update the consent in Google Consent Mode
window.gtag('consent', 'update', {
analytics_storage: 'granted',
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted'
});
// 2. Tell Shoporama's tracking that the consent has been updated
window.dataLayer.push({ event: 'cookie_consent_update' });
</script>
How long does it take for the DNS status to change to Ready?
DNS changes usually take effect within a few hours, but in rare cases they can take up to 24-48 hours, depending on your provider. The status is fetched when you open the Tracking page, so click "Update" to see if it has changed to "Ready". If your tracking domain is brand new, it takes up to an hour before it's created on the tracking server. Until the status shows "Ready", data can be lost.
Do I have to use GA4?
Yes. GA4 is the backbone of our server-side tracking, and you can't use the solution without it. If you don't have a GA4 account yet, read our guide to Google Analytics 4 in Shoporama.
Can I see cost price and contribution margin in GA4?
No. GA4 only receives the purchase from the customer's browser, and it has no cost price. If you want to see profit per source, use the order export described above.
Which product ID is sent with my events?
By default, the product's numeric ID, and for variants the product ID and the variant ID separated by a colon. If your store has language or country feeds turned on, the item number (SKU) is used instead. It's exactly the same ID your Google Shopping feed uses, so your events always match your product catalog at Meta and Google. Read more in the article about product IDs and catalog matching.
Can I scale it across multiple stores?
Yes. Each store gets its own tracking setup and its own tracking subdomain. It's a repeatable setup: activate it, create the DNS records shown on the Tracking page, and insert your tracking IDs. The setup itself is quick, but expect DNS to take a few hours to propagate for each store.
Why does Google Ads show roughly twice as many purchases as my order overview?
This usually happens when both the website purchase action and the import purchase action are primary. Then every purchase counts twice, and automated bidding such as target ROAS bids too high. Set the import action to secondary, as described in the Avoid counting purchases twice section above.
If you have questions or need help, feel free to contact us at support@shoporama.dk.
Related articles
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.
Implement ecommerce tracking in a Shoporama theme
Developer guide to ecommerce tracking in a Shoporama theme: the data layer, Google Tag Manager, custom events, and correct product IDs with...
Set up PriceRunner conversion tracking in Shoporama
How to add the PriceRunner conversion pixel to your Shoporama store with the correct Smarty code, so PriceRunner receives the order total incl. VAT...
Which cookies does Shoporama set?
A complete overview of the cookies a Shoporama store sets, with name, purpose, and duration. Use the list as the basis for your cookie policy.
Offline conversions for Google Ads and Microsoft Ads
Send your Shoporama orders to Google Ads and Microsoft Ads as offline conversions. Get full attribution of sales to ad clicks through a secure CSV...
Product IDs and catalog matching: match your ads to your product feed
Learn which product ID Shoporama's tracking sends, why it always matches the Google Shopping feed, what catalog matching means for your Meta and...
Cookie consent banner and Google Consent Mode v2
How to set up Shoporama's free cookie consent app: cookie categories, automatic blocking, withdrawing consent, and Google Consent Mode v2.
Shoporama tracking engine: server-side tracking for all major platforms
Shoporama's tracking engine, developed with the agency 1260 A/S, sends data from your store directly to Facebook, Google Ads, GA4, Pinterest,...
Facebook Conversions API: setup and catalog matching
How to set up the Facebook (Meta) Conversions API in Shoporama with your Pixel ID and access token, how purchases are deduplicated automatically,...
Related features
ITP (Intelligent Tracking Prevention)
ITP is Apple's Safari feature that limits tracking cookies. Learn how it affects your store's conversion tracking and retargeting, and what you can...
Server-side GTM (sGTM)
Server-side GTM is a tag container on a server that receives events from your online store through your own domain. Learn client-side vs....
Server-side tracking
Server-side tracking collects data through your server instead of the browser. Learn why it gives you better data and how it works in your online...
Server-side tracking: more accurate data for your ads
Server-side tracking for Google, Meta, Pinterest, TikTok, and Snapchat. Less affected by ad blockers. Available as an add-on on Pro and Flex.
Conversions API (CAPI)
The Conversions API sends conversions server to server to Meta, TikTok, Pinterest, and Snapchat. Learn why CAPI complements the pixel in your...
Google Tag Manager (GTM)
Google Tag Manager manages tracking codes without code changes. Learn about GTM, tags, triggers, and ecommerce tracking for online stores, and when...
Pixel swapping
Pixel swapping is a fraud technique where tracking pixels are manipulated to hijack conversions. Learn how it works and how to protect your online...
Facebook Pixel (Meta Pixel)
Facebook Pixel tracks visitors in your online store and sends the data to Meta. Read about events, retargeting, the Conversions API, and setup in...
GA4 (Google Analytics 4)
What is GA4? Google Analytics 4 is Google's event-based analytics platform. Learn about GA4, ecommerce tracking, and analytics for online stores.
Conversion tracking
Conversion tracking measures actions such as purchases and signups. Learn about tracking, measuring ROI, and optimizing your online store and...
ChatGPT can now find products and fill the cart in your online store
With WebMCP, ChatGPT can now find products, add them to the cart, and answer shipping questions in your Shoporama online store. The customer pays...
How much does an online store cost in 2026? Costs over 1 and 3 years
What does an online store cost per year? Four cost examples with Shoporama, Shopify, WooCommerce, and an agency over 1 and 3 years: platform, fees,...
Shoporama vs DanDomain
Compare Shoporama and DanDomain on pricing, speed, AI features, and integrations, and see which ecommerce platform is the best fit for your business.
Shoporama vs WooCommerce
Compare Shoporama and WooCommerce on price, security, speed, GDPR, and maintenance. Find the best ecommerce platform for your business.