Repository navigation
CMS 0.7.7
CMS 0.7.7
Google's measurement tags from the admin, forms that work under a strict Content-Security-Policy, and four fixes to the editor.
Google's measurement tags
- Settings → SEO → Google takes a GA4 measurement ID, a Tag Manager container ID and a Search Console verification code. Each is checked as Google writes it, and Search Console's whole meta tag may be pasted.
- Google's own code for each is printed once on every public page, and never in the admin or on the sign-in page. With none entered, a page loads nothing from Google.
- Only a site whose
app_envis production sends anything. A copy anywhere else shows the same tags inside a comment, to compare with the live site. - Nothing is inline, so a page under a Content-Security-Policy that allows the site's own scripts and Google's needs no change. A site whose policy asks for a nonce can hand it over.
- Each form sends one conversion event for each real submission:
generate_lead, another name set on the form, or none. It is sent whether the form finishes by script, by its redirect or on the CMS's "Sent" page. Spam, a refused submission, a reload and a direct visit send nothing. - Clicks on phone numbers and email addresses can be sent as
phone_call_clickandemail_click.
Forms
- A form posts to, and comes back to, the address the visitor used, so a site that answers on both
www.and its bare name takes forms on both. - A form's script and its hidden spam fields' styling come from the site's own files, with nothing inline.
The editor
- HTML typed in the HTML view with line breaks between paragraphs no longer leaves empty paragraphs.
- Backspace or Delete beside an embed selects it first, then removes only it, keeping the lines either side apart.
- A post from X or Instagram pasted without its script gets the provider's script.
- A post's words hold its place until the provider's frame has drawn, and stay if the provider is blocked.
Updating
- There are no database migrations.
- A whole-page theme, or a site that keeps its own router, prints the tags by calling
\Cms\Site\Google::head()in its<head>and\Cms\Site\Google::body()straight after<body>, as the README says. - After a redirect, a form's conversion waits for the next page in a cookie that lasts five minutes. Ordinary visits set none.