Pioneering Server-Side Infrastructure: Farmatodo

Server-Side TaggingGCPAnalyticsGTM Server-SideGA4Meta PixelGoogle AdsAppsFlyerBrazeBigQueryLookerSQL

The Challenge

As a major pharmacy chain, Farmatodo faced a significant data gap caused by aggressive ad-blockers and ITP (Intelligent Tracking Prevention) on mobile browsers. Traditional client-side tracking was losing roughly 20% of conversion signals, leading to undervalued marketing spend and incomplete user retention data for the C-suite.


The Tech Stack

Infrastructure

Google Cloud Platform (GCP), GTM Server-Side

Tracking & Marketing

GA4, Meta Pixel, Google Ads, AppsFlyer (Mobile), Braze (CRM)

Behavioral & BI

Hotjar, BigQuery, SQL, Looker


The Solution

Server-Side Implementation

Deployed a GTM Server-Side container on GCP to intercept web and mobile app requests. This transitioned third-party cookies to a first-party context, effectively bypassing ad-blockers and extending cookie longevity.

Omnichannel Integration

Streamlined the data flow to multiple vendors (Meta, Google Ads, Braze, and Hotjar) through a single server-side request, reducing the heavy JavaScript execution on the client-side and improving page load speeds.

C-Suite Retention Dashboards

Developed a custom ETL process to pipe raw event data from BigQuery into Looker. Authored the SQL logic to calculate rolling retention cohorts, giving leadership a real-time view of customer loyalty.


The "Aha!" Moment

After going live with Server-Side tagging, we realized that the "Marketing" budget was significantly more efficient than previously thought. We discovered that mobile app users who were "invisible" to our old tracking were actually our most frequent buyers, shifting the entire company's focus toward a "Mobile-First" loyalty strategy.

The Business Impact

+20%

Data Recovery — increased conversion signal tracking across Web and Mobile platforms

Lower CPA

Marketing Efficiency — improved attribution accuracy for Meta and Google Ads, lowering Cost Per Acquisition by identifying previously untracked conversions

1st Dashboard

Strategic Insight — provided the C-suite with the company's first real-time retention dashboard, directly influencing the 2021 marketing roadmap

Faster UX

Performance — improved website performance by offloading tracking scripts to the server, resulting in a snappier user experience