# 0051. The settings embeds are rendered; analytics loads on idle

- **Status:** Accepted
- **Date:** 2026-09-24

## Context

`Settings::embedHead`, `embedBodyStart` and `embedBodyEnd` were editable in the admin and never output by the
layout, so a tag container pasted there would not have loaded.

## Decision

`views/layouts/main.php` renders them — `embedHead` after the Consent Mode default, so the container never
measures without a consent state. The Google Tag Manager snippet goes into `embedHead` as an idle loader
(first interaction, `requestIdleCallback`, or 3 s), as on Molino (its ADR 0061).

## Consequences

- The loader is database content, per environment, outside the repository.
- A visitor who leaves within the first second or two is not counted.
