Skip to main content
Copertina articolo: Privacy-first analytics: GDPR and tracking without cookies
Articles/Innovation

Privacy-first analytics: GDPR and tracking without cookies

/

In February 2021 Apple imposed a radical change with iOS 14.5: each app had to explicitly ask permission to track users between different applications. 96% of American users chose not to be tracked, causing billions loss for Facebook and a crash of the Snap title. This marked a turning point in digital advertising, which quickly adapted to a world where traditional tracking is increasingly limited.

Today, between Safari, Firefox, Google Chrome and the GDPR, an aveRAGe e-commerce sees only 50-60% of real traffic in its analytics. The rest of users do not disappear, but simply is not traced. This phenomenon requires to rethink how to collect reliable data and respect privacy.

Real problem

To act effectively, you must first quantify the specific problem of your company. Data loss varies according to cookies banners, browsers and used channels. For example, a transparent GDPR-compliant cookie banner can lead to conscious waste of 50-70%, while iOS 14.5 limits cross-app tracking for 85% of iOS users.

Loss factorImpact on dataPercent of lost data
Cookie banner with easy opt-out (dark pattern)Users who reject analytics cookies30-50%
Transparent cookie banner (GDPR-compliant)Users who consciously refuse50-70%
Safari ITPCookie first-party limited to 7 daysAdditional 15-25%
iOS 14.5+ ATTUsers rejecting cross-app tracking75-85% iOS users
To blockerBlock analytics scripts and pixels15-30% desktop users
Chrome with user choiceLess stable measurementRetargeting and less predictable attribution
Firefox ETPKnown automatic tracker lock40-60% Firefox users

Measure the gap by comparing your CRM data with GA4 data. If you lose more than 30%, your decision-making ability is compromised; above 50%, you are basing choices on less than half of reality.

Conceptual model

Traditional client-side tracking is fragile because it depends on the browser and cookies, easily blocked or limited. The solution is to move data collection to a server controlled by you, which attacks and sends data to analytics and advertising providers.

TRADITIONAL ARCHITECTURE (client-side): User browser -> JavaScript GA4, Meta Pixel, TikTok tag -> server provider Each tag can be locked separately.

SERVER-SIDE ARCHITECTURE: User browser -> light script -> your GTM server -> Google Analytics, Meta CAPI, TikTok Events API A single data collection point, on first-party domain, difficult to block.

Strict formalisation

AppearanceClient-sideServer-side
Blocking blockerVulnerableResistant
Site speedSlow downFaster
Cookie duration7 days on SafariExtendable
Data controlVendor before youYou decide what to send
PII ManagementHardYou can remove PII first
CostFree50-200 €/month server
LatencyVariableControlled, sub-200ms

Implementing server-side tagging on Google Cloud Run is accessible and scalable. A Flask endpoint can receive events from your browser, anonymize personal data with SHA-256 hash and forward them to GA4 and Meta CAPI.

In the browser, a single lightweight script sends events to the server, generating unique event IDs and hashando emAIls to comply with the GDPR.

Example or case study

An Italian retAIler with 50k customers and 2 million euros of turnover measured a gap of 53% between GA4 and real orders. After implementing Consent Mode v2, Enhanced Conversions, server-side tagging and first-party data strategies, the gap dropped to 8%. Visibility has almost doubled, the ROI Google Ads has risen from 2.0x to 2.8x, and GDPR compliance is guaranteed without accidents.

Lab / exercise

Basic level: Compare CRM data with GA4 using the SQL query provided to measure the gap.

Intermediate Level: Implement the Allow Mode v2 on your site, distinguishing between analytics consent and marketing.

Research-grade level: Design and implement a server-side tagging on Google Cloud Run with data sending to GA4 and Meta CAPI, anonymizing PII.

Datasets and recommended materials: GA4 event datasets, CRM order data, Google documentation Allows Mode and Measurement Protocol.

Typical error to avoid

Do not treat consent as a single toggle “Accept cookies.” The GDPR requires to clearly distinguish between analytics cookies and marketing, with explicit and separate consent. Ignoring this distinction leads to violations and low quality data.

Quiz or checkpoint

  • What is the main cause of data loss in traditional tracking systems?, How does the server-side tagging improve the quality of the data collected?, Why is it important to distinguish between consent to analytics and marketing in the Mode v2 Allow?, What are the strategic advantages of a first-party data collection?

The point the privacy-first analytics is not a limit, but an opportunity to build a more robust and reliable data system. moving tracking on the server, using google’s statistical modeling allow mode, and focusing on first-party data are the key moves to make informed decisions in an uncertain world. the initial cost is offset by better visibility, compliance and predictive ability, essential elements to compete today and tomorrow.

Related articles

AI 2027 in Italian: Scenario, graphs and what it really means
June 13, 20261 min read
Read
AI marketing analytics 2026: What really works
February 28, 20261 min read
Read
Innovation Italian University: Analytics and digital
February 28, 20261 min read
Read