GDPR vs CCPA vs HIPAA: which applies to your website?
GDPR, the CCPA and HIPAA are often mentioned in the same breath, but they are very different laws. GDPR protects people in the UK and EU and reaches any business that serves or tracks them, wherever it is based. The CCPA, as amended by the CPRA, protects California residents and only applies to businesses above certain size or data thresholds. HIPAA is not a general privacy law at all: it covers health information held by healthcare providers, health plans and the companies working for them. A small business can be caught by one, two, all three or none. This guide shows how to work out which apply to your website, how their obligations differ, and the specific changes each one requires on the site itself.
- Three laws with three different jobs
- GDPR, CCPA and HIPAA side by side
- How to work out which laws apply to you
- What to change on the site for GDPR
- What to change on the site for the CCPA
- What to change on the site for HIPAA
- The fix, step by step
- Edge cases worth knowing
- Keeping it right
- Questions and answers
Three laws with three different jobs
The quickest way to understand the difference is to ask what each law protects and who it binds.
- GDPR protects any personal data about people in the EU, and UK GDPR does the same for people in the UK. It binds businesses established there, and businesses elsewhere that offer goods or services to people there or monitor their behaviour online, for example with analytics or advertising cookies.
- CCPA, the California Consumer Privacy Act as amended by the California Privacy Rights Act, protects personal information about California residents. It binds for-profit businesses that do business in California and meet at least one size or data threshold.
- HIPAA, the US Health Insurance Portability and Accountability Act, protects protected health information. It binds covered entities, meaning healthcare providers that bill electronically, health plans and healthcare clearinghouses, plus their business associates.
So the questions are not alternatives. Asking GDPR or CCPA is really asking whether you have UK or EU visitors and whether you are a sizeable business with Californian customers. Asking GDPR or HIPAA is asking whether you serve people in Europe and whether you are part of the US healthcare system. Both answers can be yes.
GDPR, CCPA and HIPAA side by side
| GDPR and UK GDPR | CCPA and CPRA | HIPAA | |
|---|---|---|---|
| Protects | People in the EU or UK | California residents | Patients and health plan members |
| Data covered | Any personal data | Personal information, with extra rules for sensitive information | Protected health information only |
| Who must comply | Any size of organisation in scope | Businesses over the thresholds below | Covered entities and business associates |
| Size threshold | None | Revenue over $25 million (inflation adjusted), or 100,000 or more consumers or households, or half of revenue from selling or sharing data | None, but only for healthcare roles |
| Basic model | Need a lawful basis; opt-in consent for cookies and marketing | Notice and opt-out of sale and sharing | Use only for treatment, payment and operations unless the patient gives written permission |
| Request deadline | One month, extendable by two | 45 days, extendable by 45 | 30 days for access, extendable by 30 |
| Breach reporting | Regulator within 72 hours if there is a risk | Notice to affected residents under California breach law | Individuals within 60 days; HHS as well |
| Contracts with vendors | Data processing agreement | Service provider contract | Business associate agreement |
The biggest practical difference for a website is the consent model. Under GDPR and PECR you ask first and set non-essential cookies only after a yes. Under the CCPA you may collect by default, but you must say what you collect at or before collection and let people opt out of their data being sold or shared for cross-context behavioural advertising.
How to work out which laws apply to you
Answer these questions in order and write the answers down; they form part of your records.
- Are you established in the UK or EU? If yes, GDPR applies to everything you do.
- If not, do you target people there? Prices in pounds or euros, delivery to Europe, local language pages or advertising aimed there all point to yes. So does tracking their behaviour with analytics or advertising cookies.
- Do you do business in California? If so, check the three CCPA thresholds against your last calendar year. Revenue counts worldwide, not only Californian sales.
- Are you a healthcare provider that bills insurers electronically, a health plan, or a clearinghouse? If yes, HIPAA applies to your patient information.
- Do you handle health information for one of those? A developer, host or marketing agency working for a clinic is likely a business associate.
Your server logs and analytics show where visitors come from. A quick look at country data tells you whether UK or EU visitors are more than occasional, and checkout data shows where you ship.
What to change on the site for GDPR
- A cookie banner that blocks non-essential cookies until consent, with equal Accept and Reject options. See cookie consent.
- A privacy notice that gives your lawful basis for each purpose, recipients, transfers, retention and rights. See privacy policy.
- Unticked opt-in boxes for marketing on forms.
- Processor agreements with every provider that receives personal data, and a transfer safeguard for those outside the UK or EU.
- A way to handle access, deletion and correction requests within one month.
If you are outside the UK and EU but GDPR applies, you may also need a representative there. The full ordered list is in the GDPR compliance checklist.
What to change on the site for the CCPA
If you sell or share personal information, which includes letting advertising pixels collect data for cross-context behavioural advertising, you need a clear link in the footer:
<footer>
<a href='/privacy-choices'>Do Not Sell or Share My Personal Information</a>
</footer>
A single Your Privacy Choices link with the official icon can replace it. The page it leads to must let visitors opt out without creating an account.
You must also treat a Global Privacy Control signal as a valid opt-out. Browsers and extensions that support it send a Sec-GPC: 1 request header and expose a JavaScript property:
if (navigator.globalPrivacyControl === true) {
// Treat as an opt-out of sale and sharing:
// do not load advertising pixels for this visitor
window.optOutOfSale = true;
}
On the server you can check the header instead, for example in nginx with $http_sec_gpc. Other items for the site:
- A privacy policy describing the categories of information collected, the purposes, the categories of third parties, and the rights to know, delete, correct, opt out and limit use of sensitive information. Review it at least every 12 months.
- At least two ways to make requests. A business that operates only online and deals directly with consumers can offer just an email address.
- Service provider terms with vendors that limit how they may use the data.
What to change on the site for HIPAA
For a covered entity, the website risk is usually not the brochure pages but anything that ties a person to health information: appointment forms, symptom checkers, patient portals and the tracking tags that run on them.
- Tracking tags. US Department of Health and Human Services guidance says tracking technology on authenticated pages, such as a patient portal, can disclose protected health information to the tag vendor. A 2024 court ruling struck down part of that guidance about some public pages, but tags on logged-in or appointment pages remain a clear risk. Remove advertising and analytics tags from those pages unless the vendor signs a business associate agreement.
- Forms. Send health information from forms over https into a system covered by a business associate agreement, not into ordinary email or a general form builder.
- Hosting. Your host, form tool, email provider and any developer with access to patient data need business associate agreements.
- Security. The HIPAA Security Rule requires risk analysis, access controls, audit logs and encryption appropriate to the risk.
To see which third parties a patient page talks to, list the hosts in the DevTools Network panel while you are signed in, and check each one against your list of signed agreements.
The fix, step by step
Step 1
List where your visitors and customers are
Check analytics country reports, checkout addresses and your customer list to see whether you have people in the UK, the EU and California. Note whether you deliberately market to any of those places, for example with local currency, shipping or advertising. Write the results in a short scope note. You now know which of the location-based laws you need to test further. Keep the evidence you used with the note.
Step 2
Test the CCPA thresholds
If you do business in California, check last year's figures against the three thresholds: annual revenue over the inflation-adjusted $25 million, personal information of 100,000 or more California consumers or households, or half your revenue from selling or sharing personal information. Meeting any one brings you into scope. Record the figures you checked and the date in your scope note. Recheck them each new year.
Step 3
Check whether HIPAA applies
Decide whether you are a covered entity, meaning a provider that bills health plans electronically, a health plan or a clearinghouse, or whether you handle patient information for one as a business associate. If neither, HIPAA does not apply, but note any health data you collect so you can treat it carefully under GDPR or US consumer health rules. Record the conclusion and the reason.
Step 4
Map your trackers and forms
Open your main pages, forms and any logged-in area with the DevTools Network panel and list every third-party host. Mark which ones are analytics, advertising, chat, forms or embeds, and which pages they load on. This list shows where consent, opt-out or business associate agreements are needed. You are done when every host is labelled with its purpose and the pages it runs on. Repeat it while signed in to any account area.
Step 5
Apply the GDPR changes
If GDPR applies, install a consent banner that blocks non-essential cookies until the visitor agrees, with Reject all beside Accept all. Update the privacy notice with lawful bases, recipients, transfers, retention and rights, and add unticked opt-in boxes for marketing. Accept processor agreements with your providers. Confirm in a private window that no tracker loads before consent, and that rejecting keeps analytics and advertising cookies off on later pages.
Step 6
Apply the CCPA changes
If the CCPA applies and you sell or share data, add a Do Not Sell or Share My Personal Information link or Your Privacy Choices link in the footer. Make your scripts read navigator.globalPrivacyControl or the Sec-GPC header and treat it as an opt-out. Update the privacy policy with the California disclosures and request methods, then test with a GPC-enabled browser. Record the date you tested it.
Step 7
Apply the HIPAA changes
If HIPAA applies, remove advertising and analytics tags from appointment forms, patient portals and other pages that link a person to health information, unless the vendor has signed a business associate agreement. Route form submissions into a covered system and get agreements from your host, form and email providers. Repeat the Network panel check while signed in to confirm no unexpected host receives requests. Keep the agreements on file.
Step 8
Record decisions and set a review date
Save your scope note, tracker map and the agreements you collected in one folder, with the date of each decision. Put a yearly review in your calendar, and an extra one whenever you enter a new market, pass a revenue threshold or add a new tool to forms or logged-in pages. Run a GDPR scan after each review to confirm the site still behaves as recorded. Keep earlier notes for comparison.
Edge cases worth knowing
- A UK clinic with US patients. It is under UK GDPR, but HIPAA does not apply unless it is a US covered entity or works for one.
- A US practice with European visitors. Treating EU residents who travel to the US may not bring GDPR into play, but actively marketing to or tracking people in Europe can.
- Small Californian businesses. Below all three thresholds the CCPA does not apply, though California's other privacy and breach rules still do.
- B2B and employee data. The CCPA now covers employee and business contact information too, after temporary exemptions expired in 2023.
- Fines. GDPR fines reach 4% of worldwide turnover, the CCPA allows thousands of dollars per violation, and HIPAA penalties are tiered by how culpable the failure was.
Keeping it right
- Write down which laws apply and why, and revisit the decision each year when revenue, customer numbers or markets change.
- Build one banner and one privacy setup that satisfies the strictest law that applies, and add the CCPA link and GPC handling on top where needed. This is simpler than separate versions per region.
- Check every new tag or plugin against all applicable laws before it goes live, especially on forms and logged-in pages.
- Keep vendor agreements of each type in one place: data processing agreements, service provider terms and business associate agreements.
A GDPR scan shows which trackers your pages load and whether they wait for consent, and the GDPR guide explains the European rules in more depth.
1. What is the main difference between GDPR and CCPA?
GDPR is an opt-in law that covers any organisation handling personal data about people in the UK or EU, while the CCPA is largely an opt-out law covering larger businesses with California customers. Under GDPR you need a lawful basis for every use and consent before setting non-essential cookies. Under the CCPA you can collect by default but must give notice and let people opt out of their data being sold or shared. GDPR has no size threshold, whereas the CCPA only applies above set revenue or data levels.
2. Does the CCPA apply to my small business?
Only if you are a for-profit business doing business in California and meet at least one threshold. Those are annual worldwide revenue above the inflation-adjusted figure of $25 million, buying, selling or sharing personal information of 100,000 or more California consumers or households, or earning half or more of your revenue from selling or sharing personal information. Most small businesses fall below all three, so the CCPA does not apply, though other California rules on data breaches and privacy policies may still do so.
3. Does GDPR apply to a US company?
Yes, if the company offers goods or services to people in the UK or EU, or monitors their behaviour online. Shipping to Europe, pricing in euros or pounds, or advertising aimed at European visitors are signs that you are targeting them. Tracking European visitors with analytics or advertising cookies can also count as monitoring. A US company with only occasional, untargeted European visitors may be outside scope, but if GDPR applies it may also need to appoint a representative in the UK or EU.
4. Is HIPAA the same as GDPR for health data?
No. HIPAA only covers protected health information held by US healthcare providers that bill electronically, health plans, clearinghouses and their business associates. GDPR covers all personal data about people in the UK or EU, and treats health data as special category data that needs an extra legal condition. A fitness app outside the US healthcare system is usually not under HIPAA, but if it has European users it is under GDPR. An organisation can be subject to both laws at once.
5. Can I use Google Analytics on a HIPAA-covered website?
Only with great care, and not on pages that link a person to their health information. Google states that its standard analytics product is not intended for protected health information and it does not sign business associate agreements for it. US health regulators have warned that tracking tags on patient portals and similar pages can disclose protected health information. Many covered entities therefore remove analytics from logged-in and appointment pages entirely, or use an analytics service that will sign a business associate agreement.
6. What is Global Privacy Control and do I have to honour it?
Global Privacy Control is a browser signal that tells websites the visitor wants to opt out of the sale or sharing of their personal information. Under the CCPA regulations, a business that sells or shares personal information must treat it as a valid opt-out request for that browser. Supporting browsers and extensions send a Sec-GPC request header and set a JavaScript property you can read. Several other US state laws also require universal opt-out signals to be respected, so it is worth supporting generally.
7. If I comply with GDPR, am I also compliant with the CCPA?
Not automatically, though GDPR work covers much of the ground. A GDPR compliant site already has a data inventory, a privacy notice, consent for cookies and a process for access and deletion requests. The CCPA adds its own items: specific California disclosures in the privacy policy, a Do Not Sell or Share link or Your Privacy Choices link, honouring Global Privacy Control, and contract terms with service providers. Start from your GDPR setup and add those pieces rather than building twice.
The GDPR scan lists every third-party service your pages contact, shows whether each waits for consent, and checks your privacy notice and cookie banner, so you know what each law requires you to change.
Open GDPR Fixes โ