# Settings & SEO

The **Settings** section holds the site's global parameters. They're available in all templates and affect the entire front-end.

## Core settings

- **Site name** — shown in the header, titles, meta tags (`{site.name}`).
- **Site URL** — the base address (`{site.url}`), used for absolute links, canonical, the sitemap.
- **Default SEO** — title and description for pages that don't set their own.
- **Contacts** — phone, email, address (if the theme outputs them).

## Custom code in `<head>` and before `</body>`

Two fields let you insert your own code without touching templates:

- **Head code** — counters, verifications, meta tags (`{custom_head_html}`).
- **Before-body-close code** — chat widgets, pixels (`{custom_foot_html}`).

> This code is stored in the database of a specific installation, not in the CMS code — so when the engine is distributed, other people's scripts don't "travel" to other sites.

## Performance

- **Clear cache** — resets the compiled-template and data caches. Needed after editing a `.tpl` in production.
- **Don't cache templates** — a development mode (every render is fresh). Keep it off in production.

## SEO tools

The engine serves service files for search engines itself:

| Address | Purpose |
|---------|---------|
| `/sitemap.xml` | sitemap (pages, news, categories) |
| `/robots.txt` | crawl rules for robots |
| `/rss.xml` | news feed |

Additionally: each page has a canonical and (where needed) `hreflang` for language versions, and the landing has JSON-LD microdata (organization type). More on languages — [Internationalization](/docs/code/i18n).

## Analytics

Besides Google Analytics/Ads, the bundle includes **first-party analytics** (the Analytics plugin): the **Analytics** section in the panel shows referral sources, popular pages, "where they came from", clicks and leads, sessions. Data is collected by your own tracker and stored in your database — without sharing with third parties.
