HIPAA and Tracking

Server-Side Tagging and HIPAA: What Moving the Tag Actually Changes

Moving a tag off the browser and onto a server you control changes who sends the request. It does not change what the request contains, and it does not change which contract governs the company receiving it.

Consential Research is the editorial desk at Consential.io. Articles are drafted against primary sources, listed at the end of every piece, and reviewed by our editorial team before publication. Legal-topic articles describe published guidance and filings and are not legal advice.

A server rack panel with a single outbound network cable, representing the relay a server-side tag container inserts between a website and an advertising platform

Server-side tagging is the most confidently oversold idea in healthcare marketing right now. The pitch is compact and it sounds like engineering: move your tags off the patient's browser and onto a server you control, and the compliance problem goes away. Practices are buying it, agencies are selling it, and a good deal of published guidance presents it as the settled answer to HIPAA on a medical website.

The architecture is real and it is genuinely useful. The claim attached to it is not. Moving a tag changes who sends a request. It does not change what the request contains, and it does not change which contract governs the company receiving it. Those are the two things HIPAA actually turns on.

What moving the tag actually changes

In a conventional setup, the patient's browser loads a vendor's script and that script sends data directly to the vendor. Google Analytics collects in the browser and posts to Google. The Meta Pixel collects in the browser and posts to Meta.

In a server-side setup, the browser posts to a container you run, usually on your own cloud infrastructure. That container receives the event, optionally transforms it, and then forwards it to the same vendor endpoints. Google's server-side tag manager forwards to Google. The Meta Conversions API forwards to Meta.

Read that sequence again and notice where it ends. The destination is unchanged. What changed is the number of hops and who controls the middle one. A practice that was sending a treatment page view to Meta before is still sending a treatment page view to Meta, by way of a server it now pays for.

The mechanism in one sentence. Server-side tagging inserts a relay you control between the browser and the vendor. It gives you a place to filter. It does not filter anything on its own, and the data that leaves the relay reaches exactly the company it always reached.

This matters because the compliance question was never about the browser. Nothing in HIPAA regulates JavaScript. The rule governs disclosure of protected health information to another party, and a disclosure made from your server is still a disclosure.

The contract the transport does not touch

When a vendor receives protected health information in order to perform a function on your behalf, that vendor is a business associate, and the arrangement requires a written contract under 45 CFR 164.502. We walked through when that threshold is crossed in the BAA decision tree.

Nothing about that test references how the data arrived. It asks what the data is and who now holds it. A business associate relationship is created by receipt and purpose, not by protocol. So the question a practice has to answer before choosing an architecture is simple, and it is not a technical question at all: will this company sign a business associate agreement covering what I am about to send it?

If the answer is no, then server-side tagging has not solved the problem. It has moved the point of disclosure one machine to the left and left the disclosure intact.

What Google and Meta actually say

Both platforms have published positions on this, and both are clearer than the marketing around them.

Google maintains a list of products covered by the Google Cloud business associate agreement. It runs to more than a hundred entries and includes the infrastructure a server-side container typically runs on, such as Cloud Run. Neither Google Analytics nor Google Ads appears on it. The same page instructs customers to ensure that you do not use Google Cloud Products that are not explicitly covered by the BAA when working with PHI.

The distinction is worth sitting with, because it is the exact place the server-side pitch gets its plausibility. The box your container runs in can be covered. The advertising product you forward to is not. A practice can build a fully BAA-covered pipeline whose final hop lands somewhere the BAA does not reach, and every component in that sentence is accurate.

Meta is more direct. The Meta Business Tools Terms require the advertiser to warrant that it will not share Business Tool Data that includes or is based on, directly or otherwise, health information, financial information, consumer report information, or other categories of sensitive information.

Read the direction of that obligation. Meta is not agreeing to safeguard health information on your behalf. Meta is requiring you to promise you will not send any. That is the inverse of a business associate agreement, and sending health data anyway is a breach of your contract with Meta in addition to whatever it is under HIPAA.

The Conversions API does not alter that term. It is a delivery method offered under the same agreement, and the warranty covers Business Tool Data regardless of which pipe carries it.

What server-side tagging genuinely does fix

None of this makes server-side tagging a bad architecture. It makes it a control surface rather than a compliance outcome, and the distinction is the whole article.

A server container is the only practical place to strip data before it leaves your custody. In the browser you are negotiating with a vendor's minified script over what it collects. On your own server you hold the payload as a structured object and can drop fields, coarsen values, remove URL paths that name a condition, and decide event by event whether anything goes out at all. That is a real capability and most practices do not have it.

It also gives you a log. When the question is what left this site last March, a relay you own can answer it and a browser cannot. For anyone who has tried to reconstruct an exposure after the fact, that alone can justify the build.

What it does not do is make either of those things happen automatically. A default server-side installation forwards the same payload to the same endpoint. The compliance value comes entirely from the filtering logic somebody writes and maintains on top of it, and a container nobody has configured is an expensive way to keep doing what you were doing.

Where that leaves a practice

The useful sequence runs in the opposite order from the one usually sold.

  1. Decide what may leave the site at all. Page URLs that name a procedure, form field contents, and anything a visitor typed are the fields that turn an analytics event into a disclosure. This is a policy decision, not an engineering one, and it belongs to the practice rather than the agency.
  2. Check which destinations will contract for it. For each vendor still receiving data after that first cut, establish whether a business associate agreement is available covering that specific product. A plan to sign is not a signature, and a BAA covering a parent company's cloud division does not cover its advertising division.
  3. Then choose the architecture. If a destination will not contract, the remedy is to stop sending it the regulated fields, not to re-route them. If it will, server-side tagging is an excellent way to enforce exactly what you decided in step one.
  4. Gate what survives. Transport and consent are separate questions. A page that has cleared every contractual test still needs the visitor's permission before non-essential tracking runs, which is the subject of consent mode versus actual tag blocking.

There is a broader pattern worth naming, because it shows up well beyond tag management. When a platform restricts data because of what that data is, the only responses that actually work are to send less of it or to stop. Changing the transport does not launder the content, and neither does renaming the event. The restriction follows the data, not the pipe.

Server-side tagging is worth building. It is worth building for the control it gives you over what leaves, and it should be described that way to whoever signs off on it. Sold as a compliance outcome, it produces a practice that believes a problem is solved, a monthly cloud bill, and the same data arriving at the same company it was arriving at before.

Editorial note. This article describes what published guidance, statutes and vendor terms say as of its publication date. It is general information, not legal advice, and it is not a statement about any particular practice's obligations. Consential.io is not a law firm. Regulations, case law and platform terms change. Confirm your own position with healthcare counsel licensed in your state before acting on anything here.

Sources

  1. HIPAA Compliance on Google Cloud, including the Covered Products list Google Cloud, retrieved September 20, 2026
  2. Meta Business Tools Terms, section 1.h Meta, retrieved September 20, 2026
  3. 45 CFR 164.502, uses and disclosures of protected health information, including the business associate condition Electronic Code of Federal Regulations
  4. Server-side tagging, Google Tag Manager developer documentation Vendor documentation for the server container architecture
  5. Meta Conversions API developer documentation Vendor documentation for server-to-server event delivery

See what your site sends before you decide where to move it

The free scan loads your pages the way a patient does and reports every third-party destination that receives data, including the ones a tag manager forwards on your behalf.