Privacy Policy

Last updated: November 6, 2026

Introduction

This website (williamtong.dev) is a personal portfolio operated by William TONG. This policy explains what data is collected, why, and how it is handled.

Data collected

Analytics (page views)

When you visit a page, the following is recorded: page path, IP address, referrer URL, and user agent. This data is used solely to understand traffic patterns. It is stored in Cloudflare D1, operated by our hosting provider. It is not sold or used for advertising.

Chat

When you use the chat feature, your messages are sent to OpenRouter (openrouter.ai), a third-party AI inference provider, to generate responses. Your IP address is used for rate limiting (max 20 requests per minute). Chat messages and IP addresses are stored in Cloudflare D1 for analytics purposes.

Language preference cookie

If you manually switch the site language, a cookie named "locale" is set to remember your choice (value: "en" or "fr", expires after 1 year). This cookie is only set after you explicitly toggle the language. No cookie is set on first visit — the site reads your browser language automatically. Your theme preference is kept in your browser’s local storage. This cookie is exempt from consent requirements under the ePrivacy Directive as it is strictly necessary to provide a service you requested.

What is NOT collected

No advertising trackers, no third-party analytics (Google Analytics, etc.), no fingerprinting, no personal accounts, no email collection beyond direct contact.

Data retention

Analytics data is capped and automatically pruned: page views (10,000 max), chat conversations (1,000 max), visitors (5,000 max). Older entries are dropped when these limits are reached. These limits do not set a fixed retention period.

Third-party services

Cloudflare (cloudflare.com) hosts the website on Workers and stores our analytics in D1. OpenRouter (openrouter.ai) and the selected model provider process chat messages to generate AI responses. These providers may process data internationally; their privacy policies describe their processing and transfer safeguards.

CloudflareOpenRouter

Your rights

Under the GDPR, you have the right to access, rectify, or delete your personal data. You may also object to processing or request data portability. To exercise these rights, contact: hello@williamtong.dev. You also have the right to file a complaint with the CNIL (cnil.fr), France's data protection authority.

Contact

For any questions regarding this privacy policy, reach out at hello@williamtong.dev.