> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wowweb.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

> Connect Yandex Metrika and Google Analytics to your WowWeb AI site: step-by-step instructions.

Understanding who visits your site, where they come from, and what they look at is key to growth. Out of the box, the admin panel counts unique visitors. For advanced analytics, connect Yandex Metrika or Google Analytics.

## Built-in counter

* Unique visitors today and all-time.
* Period dynamics: 7 days, 30 days, year.
* Lead count and conversion.

## Yandex Metrika

The most complete solution for the Russian market. Sees even more than Google Analytics: works in Russia without VPN, certified for government site analytics.

<CardGroup cols={2}>
  <Card title="Heatmaps" icon="fire">
    See where people click and where they don't scroll to.
  </Card>

  <Card title="Webvisor" icon="film">
    Recording of user actions, watch how real people navigate your pages.
  </Card>

  <Card title="Goals and conversions" icon="bullseye">
    Track leads, payments, registrations.
  </Card>

  <Card title="Search queries" icon="magnifying-glass">
    Learn what words people use to find your site.
  </Card>
</CardGroup>

### Connect Yandex Metrika

<Steps>
  <Step title="Create a counter">
    Open [metrika.yandex.com](https://metrika.yandex.com), sign in via Yandex ID, click "Add counter", enter your site URL.
  </Step>

  <Step title="Copy Counter ID">
    After creation, you see the counter number, an 8-digit number (e.g., 12345678).
  </Step>

  <Step title="WowWeb → Integrations → Yandex Metrika">
    Enter Counter ID in the field. Click "Connect".
  </Step>

  <Step title="Publish the site">
    In 5-10 minutes, stats start collecting. You'll see first visits in Metrika.
  </Step>
</Steps>

## Google Analytics 4

Right for global projects and B2B audience. Integrates with other Google services (Ads, Search Console).

The connection form has one field:

* **Measurement ID** in the form `G-XXXXXXXXXX`. Google Analytics, "Admin", "Data streams", web stream.

<Warning>
  In Russia, Google Analytics works unreliably unless visitors use a VPN, so a share of traffic will not reach the reports. For Russian projects, use Yandex Metrika as the primary analytics and treat GA as a secondary source.
</Warning>

### Connect Google Analytics

<Steps>
  <Step title="Sign in to Google Analytics">
    Open [analytics.google.com](https://analytics.google.com) with your Google account.
  </Step>

  <Step title="Create an account">
    "Admin" (gear icon in the bottom-left), "Create", "Account", enter the organization name.
  </Step>

  <Step title="Create a property">
    Site name, time zone (Europe/Moscow), currency (RUB), "Next".
  </Step>

  <Step title="Pick industry">
    Select industry and business size, "Create", accept the terms.
  </Step>

  <Step title="Create a data stream">
    "Data stream", "Web", enter the site URL (`https://your-domain`), "Create stream".
  </Step>

  <Step title="Copy the Measurement ID">
    In the stream card, copy the "Stream ID" in the form `G-XXXXXXXXXX`, that is your Measurement ID. Paste it into the WowWeb connection field.
  </Step>

  <Step title="Publish the site">
    WowWeb injects the `gtag.js` tag into `<head>` automatically at build time. Data starts flowing into GA4 within 30-60 minutes.
  </Step>
</Steps>

## What's next

<CardGroup cols={2}>
  <Card title="SEO" icon="magnifying-glass" href="/en/publishing/seo">
    What we do for search engines automatically.
  </Card>

  <Card title="CRM integrations" icon="users" href="/en/integrations/crm">
    Forward leads to AmoCRM.
  </Card>
</CardGroup>
