Files
hotdog-cms/docs/privacy.md
T
jcoffey-dev 93341da5a5
ci / editor-ui (pull_request) Successful in 1m17s
ci / go (pull_request) Successful in 1m34s
GA4: Consent Mode signals, and ad_conversions for Google ads
GA4 is told what the visitor agreed to when it starts: statistics granted,
ad personalization denied, ad measurement only with ad_conversions: true.
Without the signals Google drops what it learns from visitors in the EEA
and the UK.

ad_conversions (ga4, consent required) says so in the banner and the
privacy notice and adds Google ad hosts to the CSP. The editor offers it
and keeps it when saving.
2026-10-25 00:03:31 -07:00

3.5 KiB

Privacy, consent and statistics

HotDog CMS sites don't track anyone unless the site turns statistics on, and then only after the visitor agrees.

Visit statistics

# site.yaml: one of
analytics: { provider: plausible, domain: example.org }
analytics: { provider: plausible, domain: example.org, src: "https://stats.example.org/js/script.js" }
analytics: { provider: matomo, url: "https://matomo.example.org/", site_id: "1" }
analytics: { provider: ga4, id: G-XXXXXXX }

With analytics: set, every page gets a small consent script and stylesheet through {{ consent }} in the head. They're files, not inline code, so a strict Content-Security-Policy still holds.

  • The question: on a first visit, a banner asks whether the site may count the visit. It sits at the foot of the page, not over it, and the page works without answering. Decline comes first and looks the same as Accept.
  • Nothing is counted until someone accepts. Only then is the counter's script added to the page.
  • Declining (then or later) removes the counter's cookies.
  • Global Privacy Control: a browser that sends it has already said no, and isn't asked.
  • Cookie settings: any element with data-hotdog-consent-open reopens the choice. The starter puts a "Cookie settings" button in its footer.
  • Remembered in the browser's local storage, not in a cookie.
  • CSP: the counter's hosts ride on the consent script's tag, so hotdog-cms check -csp includes them in the policy it prints, and so do container images built with csp: true.

Google ads: with GA4, ad_conversions: true also measures the site's Google Ads campaigns, for visitors who accept: whether a visit from one of the ads went on to sign up or buy. The banner says so, the privacy notice gets a line for it, and the policy from check -csp adds Google's ad hosts.

analytics: { provider: ga4, id: G-XXXXXXX, ad_conversions: true }

GA4 is always told what the visitor agreed to (Google's Consent Mode), so what it learns from visitors in the EEA and the UK isn't thrown away: statistics granted, ad personalization denied, and ad measurement granted only with ad_conversions: true. It needs consent, so it can't be combined with gated: false.

Counting without asking needs gated: false in analytics:. That's a choice written into site.yaml where a reviewer sees it. The privacy notice says so, and check warns (analytics-ungated) on every build.

The editor's Privacy & statistics page sets all of this up as a form, and saves it to a draft like any other change.

The privacy notice

{{ privacyFacts }} lists what the site uses that touches visitors' data, from the site's own settings, each time it's built:

  • the statistics, and whether they wait for consent;
  • each form, where its submissions go, and Turnstile if it's on;
  • every host in check.allow_third_party;
  • anything listed under privacy.extra.
privacy:
  controller: Coffey Labs LLC           # who answers for the data
  contact: [email protected]          # an address to write to
  updated: 10 October 2026              # when the notice last changed
  extra:
    - { what: Video embeds, who: YouTube, why: Videos on some pages, basis: Your consent }

The starter's content/privacy.md uses the privacy layout, which shows the contact (protected from Cloudflare's address rewriting) and the list as a table. Because the list comes from the configuration, the notice can't fall behind what the site does.