Make `tl_layout.analytics` a `text` field (see #7393)
Consider the `useSSL` flag of the root page when generating URLs (see #7390)