DEV Community

shaojie gong
shaojie gong

Posted on

Help: could my Gmail tracking extension break privacy or anti-spam law?

I'm building a Gmail extension that can track opens and clicks, schedule follow-ups, and generate an AI-assisted draft when the user explicitly asks for one.

The code is getting close to submission. That created a question I don't think enough extension developers ask:

If Chrome approves the extension, does that mean the product is legally safe to operate?

I honestly don't know. That is why I'm asking publicly before launch instead of pretending I already have a compliance answer.

My assumption is that Chrome Web Store review checks things like declared permissions, deceptive behavior, data-use disclosures, security, and Google's own policies, while Google OAuth verification separately reviews sensitive Google user data. But is that all those approvals mean? Do they provide any meaningful legal assurance, or is the operator still fully responsible for every law that applies where a user or recipient lives?

That distinction matters more for EmailKnow than for a normal productivity extension, because there are two people in the workflow: the Gmail user who installs the product, and the recipient whose interaction may be measured.

What the product actually does

I went back through the code instead of relying on the marketing copy:

  • Open and click tracking are off by default. A sender must turn tracking on for a single-recipient email and confirm that the recipient gave prior consent. Group-message tracking is disabled.
  • Tracked messages contain a visible privacy-preferences link. Recipients can stop tracking, or stop tracking and future follow-ups from that sender. Follow-up messages also include a confirmation-based unsubscribe link.
  • The Gmail grant is limited to gmail.send and gmail.metadata. Normal tracking and follow-up logic cannot read message bodies.
  • AI is a separate, user-triggered action. Before content is sent to the Cloudflare-hosted model, the user sees what will be processed, confirms authority to submit it, and is warned not to send passwords, payment data, medical records, identity documents, or trade secrets. AI input and generated drafts are not persistently stored by EmailKnow.
  • Refresh tokens are encrypted at rest. Users can disconnect Gmail, export account data, and permanently delete the account. Tracking and follow-up workflow records are purged after 180 days.
  • Stripe hosts payment collection, so the extension never receives card numbers.

I hope those controls reduce risk, but I don't know whether they are sufficient, whether some are legally irrelevant, or whether I have designed any of them around the wrong legal assumption.

The questions I need help answering

Depending on where the sender, recipient, company, or infrastructure is located, could the product trigger rules about:

  • privacy and electronic-communications rules for tracking pixels and redirected links;
  • whether recipient consent is required, what “prior consent” must look like, and what proof must be retained;
  • anti-spam and direct-marketing rules for the original email and automated follow-ups;
  • workplace-monitoring rules when an employer tracks employees, candidates, customers, or vendors;
  • controller/processor roles, data-processing agreements, subprocessors, retention, and international transfers;
  • whether temporarily sending selected email text to an AI processor creates additional notice, contractual, confidentiality, or sector-specific obligations;
  • subscription renewal, cancellation, refund, tax, and consumer-protection requirements;
  • special restrictions involving children, healthcare, finance, education, government, or other regulated data.

A checkbox that says “I have consent” is a product control, not proof that every user's consent is valid in every jurisdiction. A privacy policy describes a practice; it does not cure an unlawful practice. An unsubscribe link helps; it does not make an unlawful first message lawful.

What could happen if the product gets this wrong?

This is the part I most need help understanding. Depending on the facts and jurisdiction, could an operator face complaints, deletion or stop-processing orders, audits, contractual claims, refunds, civil damages, regulatory penalties, or an obligation to notify affected people? Which outcomes are realistic for a small extension, and which depend on scale, intent, type of data, or failure to respond?

I also don't understand the platform consequences well enough. If the extension later violates Chrome Web Store or Google API policy, could Google reject an update, remove only this listing, restrict its API access, or suspend the entire developer account? If the account is suspended, would unrelated extensions owned by the same account also be removed or become impossible to update? Can enforcement reach associated accounts, and what normally determines whether action is listing-level or account-level?

I'm not looking for a way to evade enforcement or hide risky behavior behind another account. I want to understand the legitimate way to isolate products operationally while keeping ownership, disclosures, and platform relationships transparent.

What I need advice on before launch

Here is the checklist I currently think I need. Please tell me what is missing or misguided:

  1. Keep tracking and follow-ups off by default.
  2. Keep consent per recipient and per tracked message, not hidden in a global setting.
  3. Make recipient controls visible and usable without an account.
  4. Keep Google scopes and stored data to the minimum the feature needs.
  5. Make AI processing explicit, temporary, and human-reviewed.
  6. Document subprocessors, retention, export, deletion, and cross-border processing accurately.
  7. Add abuse handling and a way to suspend users who send unsolicited bulk mail or use deceptive tracking.
  8. Get qualified legal advice before offering the product globally or calling it “compliant” — but with users and recipients potentially located anywhere in the world, what type of lawyer and jurisdiction-by-jurisdiction review should I actually request?

I'm not posting this as legal advice. I'm posting it because I want the uncomfortable questions in public before there are real users depending on my assumptions.

If you work in privacy law, Chrome extensions, email deliverability, or SaaS compliance: what am I still missing? Which risk would you resolve before submitting to Chrome, and which one before accepting the first paying customer?

Top comments (0)