Skip to content

Privacy & cookies

This site works without analytics. Measurement only starts if you allow it, and you can withdraw at any time from the footer.

Last updated

Who is responsible

mamad.dev is run by Mohammad Mahdi Afshar. Questions about your data: me@mamad.dev.

Analytics, only with your consent

If you choose Allow, the site loads Google Analytics 4 (Google) and PostHog Cloud (PostHog, US region). Neither script is downloaded, and no request is made to either provider, before you allow it.

When allowed, they receive:

  • the address of each public page you view, without query strings or fragments, and its title
  • the referring site's address only (for links from other sites), or the previous page on this site
  • browser, device type and approximate location that the providers derive from the request
  • these interactions: opening a project, following a project's demo or source link, GitHub links, downloading the CV, email or calendar contact links, and confirming a newsletter subscription

What is never sent

No form contents, email addresses, account details or user identities. No advertising, remarketing or Google signals. No session recording, heatmaps, automatic click capture, surveys or feature flags.

Sign-in, account, dashboard and admin pages, and the IP tools, are never measured.

Where the data goes

Google and PostHog process analytics data as service providers, including in the United States. Retention follows each provider's settings for this site.

Earlier visit counter

Until October 2026 the site counted visits itself (page path, a shortened IP hash, coarse device and country) in its own database. That collection has stopped. The existing records are kept as an archive and are not shared.

Other processing

Newsletter sign-ups store your email address to send the newsletter until you unsubscribe. Accounts store what is needed to sign in. Cloudflare hosts the site and processes request logs for security and operation.

Cookies and browser storage

NameSet byPurposeLifetime
mamad.analytics-consent.v2mamad.dev (local storage)Remembers your analytics choiceUntil you change it
_ga, _ga_*Google Analytics, only after AllowDistinguishes visitsUp to 2 years
ph_*_posthogPostHog, only after Allow (cookie and local storage)Anonymous visitor and session idUp to 1 year
__APP_LOCALEmamad.devRemembers your languageSession
better-auth.*, __Secure-better-auth.*mamad.dev, only when signed inKeeps you signed inUntil sign-out or expiry

Change your choice

Use Cookie preferences in the footer or the button below. Withdrawing stops measurement in every open tab and language and removes the analytics cookies this site can remove. Data already sent stays with the provider under its retention.

Provider policies