Skip to content

Help shape the State of Tracking Report 2027. It takes 5 minutes.Take the survey

Server-side Tracking and the GDPR

Consent, EU storage and what you can strip from your data before it leaves your server.

Małgorzata Poddębniak

Content Marketer

7 min read

The GDPR has changed a lot for online organizations, and it remains critical for data protection officers, marketers and developers to align with the European privacy regulation and handle personal data properly. Server-side Tracking improves GDPR compliance by centralizing data control, enabling anonymization and minimizing third-party data exposure. But it also requires explicit user consent, data minimization and secure processing to align with the regulation.

This guide gives an overview of how Server-side Tracking helps you meet the GDPR’s data protection standards while enhancing your analytics capabilities.

Key takeaways

  • Server-side Tracking gives you more control over what data is sent to platforms such as Google and Facebook, so you can exclude personal information such as IP addresses and client IDs.
  • The growing emphasis on data protection and the shift from third-party to first-party cookies make Server-side Tracking crucial to future-proof any marketing strategy.
  • Server-side Tracking directly involves GDPR requirements for data storage, data processing agreements (DPAs) and third-party relationships. ISO-certified first-party data platforms like TAGGRS ensure that your users’ data is stored securely, processed lawfully and only shared with third parties under strict contractual terms.

How does the GDPR apply to Server-side Tracking?

The GDPR, or General Data Protection Regulation, is a privacy law regulating the processing of personal data, and it applies equally to Server-side Tracking.

Online, personal data includes information such as name, email address, IP address, some cookies, health data and financial data. Whenever your website or application collects or processes this data, whether through server-side or client-side tracking, you must ensure that at least one of these six legal bases applies:

  • explicit user consent
  • contractual necessity
  • legal obligation
  • protection of vital interests
  • public interest or official authority
  • legitimate interests, unless overridden by user rights.

How does Server-side Tracking support GDPR compliance?

Server-side Tracking gives you more control over what data is collected, processed and shared with third parties. For example, you can filter out personal information such as IP addresses and client IDs before forwarding data to platforms like Google Analytics or Facebook.

However, the GDPR requirements remain unchanged: every data processing activity must have a valid legal basis, and users must be informed transparently about what data is collected and for what purpose. For many online businesses, tracking user behavior is essential for optimizing services and making informed decisions. Website tracking is not illegal in itself, but the correct setup of your tracking and the location of your business are what make it GDPR-compliant.

To ensure GDPR-compliant tracking, you must understand your data collection methods and take specific steps to comply with legal requirements. This includes managing the collection, storage and processing of data according to GDPR standards. Implement Server-side Tracking with privacy by design, robust consent management and regular audits to maintain compliance and protect user rights.

Data collection

Data collection is usually done with a third-party tracking script and third-party cookies, for example code from Google and Facebook, often placed through GTM. This code collects data, and you have virtually no control over it, so Google can collect what it wants. To control which data is collected, you can apply server-side tagging. This gives you full control over what data is sent to Google or Facebook.

It also lets you exclude certain data from being collected. For example, you can exclude IP addresses and client IDs from tracking. You can go even further by not sending URL parameters, such as UTM tags.

The GDPR settings in the TAGGRS dashboard, with switches to anonymize IP addresses and the user agent in the tracking

GA4 also gives you more flexibility to ensure some data is not collected. For example, you can disable Google signals, ad personalization and location data.

Finally, the most important thing is to use a cookie banner to ask permission to track data, and to say what data you will collect and for what purposes. We use Cookiebot for that, because it works well with Google Tag Manager. With Consent Mode in Google Tag Manager, you make sure the tracking actually complies with what the cookie banner says.

When you set up Consent Mode in the Google Tag Manager server container, you forward data to each platform based on the consent level someone gives in the cookie banner. This keeps data processing in line with user preferences and privacy laws, balancing user privacy with data use for targeted marketing and analytics.

Data storage

Data storage is also an important factor. How long will the data be stored? GA4 has made progress here as well: for example, you can stop data being shared with other parts of Google.

It is crucial that personal data is not stored outside the EU, which is what happens with Google Analytics. Through Server-side Tracking, personal data is excluded before it is sent, so it never reaches Google Analytics. This way you can use it within the guidelines of the GDPR.

TAGGRS runs on independent European infrastructure with a European hosting provider, so your tracking data is processed in the EU.

Processing data

Finally, you need to sign a data processing agreement with the party receiving the data. In the case of GA4, you sign it when you create an account.

Impact of the GDPR on data tracking

A specific example of the impact of privacy laws on tracking is the ban by some governments on the use of Google Analytics. Because Google Analytics collects data on the behavior of website visitors, it can raise privacy concerns. Some governments have therefore banned Google Analytics on government websites to protect citizens’ privacy.

Many countries consider Google Analytics not compliant with GDPR legislation. This highlights the growing importance of privacy and data protection, and the need for alternatives such as server-side tagging.

Here you can find a list of countries that consider Google Analytics illegal.

How does server-side GTM help with GDPR compliance?

If you work with third-party cookies, you know that control over your data can be difficult. With server-side GTM, you can solve this problem and better manage what happens to your data.

Control over third-party data

Working with third-party tracking scripts doesn’t always mean you know what data is being collected. With server-side GTM, you can manage this precisely. For example, if you set up server-side tagging for Facebook, you use server tags to specify exactly what information goes to Facebook. This limits what Facebook can see.

Safely handling sensitive information and PII

Platforms like Google and Facebook do not allow you to send them personally identifiable information (PII). Server-side GTM helps you deal with this: you can remove PII such as IP addresses before it goes to external platforms, or hash it.

Data management solutions

  • Hashing user data. Platforms have their own hashing standards. For example, Google Analytics uses SHA256, as does Facebook.
  • Using a fake GA4 ID. Some people use a real Google Analytics 4 ID for event tracking, and a fake GA4 ID to send data to the server container.

Server-side GTM also lets you modify website URLs before sending them to an external party. This is useful if, for example, your URLs contain sensitive information that should not be shared.

Is server-side the future?

Given the growing emphasis on data privacy and the GDPR, server-side tagging is more than a trend. It lets companies refine data collection while complying better with privacy laws. Some countries already prohibit certain third-party tracking tools, which reinforces the need for Server-side Tracking.

There is also a shift from third-party to first-party cookies because of the greater emphasis on user privacy. Server-side tagging adds to this by filtering and hashing sensitive data before it is sent to external parties.

All in all, server-side tagging looks set to become the standard. With the growing focus on GDPR compliance and data integrity, it offers a path to both compliance and detailed data analysis.

TAGGRS offers Server-side Tracking hosting that lets you keep collecting data online while complying with the GDPR.

Frequently asked questions

Is Server-side Tracking GDPR compliant?

Server-side Tracking can be GDPR compliant when paired with user consent. It offers more control over data collection and processing, but your organization still needs a lawful basis for processing personal data and consent for tracking cookies, and must provide transparency and comply with all GDPR requirements. If you’re using TAGGRS Server-side Tracking, check our documentation about user consent.

Is Google Tag Manager GDPR compliant?

Google Tag Manager can be GDPR compliant if it is set up correctly to collect and process personal data only with consent, using Consent Mode.

Is Server-side Tracking legal?

Server-side Tracking is legal provided it complies with the GDPR. It requires transparency, a lawful basis for processing personal data and consent for tracking cookies.

What user data can be controlled or excluded with Server-side Tracking?

Server-side Tracking lets you filter, anonymize or exclude personal information, such as IP addresses or client IDs, before sharing data with third parties. This reduces privacy risks and helps you comply with the GDPR.

Does Server-side Tracking affect cookies and consent banners?

Server-side Tracking does not eliminate the use of cookies. You still need to manage both cookies and consent banners, in compliance with the GDPR and the ePrivacy Directive, to inform users and obtain their permission.

What are the main compliance requirements for Server-side Tracking?

Have a lawful basis for processing personal data, and obtain clear and informed consent before setting tracking cookies. Store and process all collected data securely, and publish a transparent privacy policy that explains how data is collected and processed. Respect users’ rights, including the right to erasure (GDPR article 17), and have data processing agreements in place with every third party that handles the data.

About the author

Małgorzata Poddębniak

Content Marketer

Gosia Poddębniak is an experienced content marketer and writer with over five years in the SaaS, analytics, and SEO industries. At TAGGRS, she develops marketing materials across multiple channels and manages website content, covering topics such as data collection, marketing optimization, privacy, tracking, and analytics.

Get started with Server-side Tracking

Move data collection onto a server you control, recover missed conversions and build a strong first-party foundation.