# How do I add Yandex Metrica to my store?

The **Yandex Metrica** app adds your Metrica counter to your store and landing pages: visits, e-commerce data (product views, carts, purchases with value), goals for Yandex Direct, and optionally **Session Replay (Webvisor)**. The counter loads after the page is shown.

## Steps

1. In **Yandex Metrica**, open your counter settings and copy the counter id (or the whole counter code).
2. In the counter, create **JavaScript event** goals. The default identifiers are `add_to_cart`, `begin_checkout`, `purchase` and `lead`.
3. In Dropify, go to **Apps > Discover**, find **Yandex Metrica** and click **Install**.
4. Click **Add your first id**, enter a **Name**, paste the counter id or the whole code and save. You can add up to 3 counters.
5. In **Events**, check each **Goal identifier** matches your goals (leave one empty to skip it), choose whether to turn on **Session Replay (Webvisor)** (only if your privacy policy covers session recording), switch on the events and click **Save events**.
6. Optional, **Server-side events**: create a **Measurement Protocol** token in the counter settings (**Data security and usage**). Paste it in **Measurement Protocol token**, choose the **Counter**, turn on **Send server-side events** and click **Save**. Orders and leads are then sent from the server to your goals.
7. Test: open your store and look at the counter's real-time report in Metrica.

Visitors who arrive with `yclid` in the link are counted as **Yandex** in your sales sources.

## Common problems

- "Enter your Yandex Metrica counter id: digits only, for example 12345678." → paste the counter number or the whole counter code.
- "A goal identifier has letters, digits, _ and - only." → use the goal's identifier, not its display name.
- Goals never reached → the identifier in **Events** must match the goal's JavaScript event identifier exactly.

## Related
- [How do I add my Facebook, TikTok, or Google pixel ID?](https://help.dropify.shop/en/pixels_tracking/how-to-add-a-tracking-pixel/)
- [Hotjar or Microsoft Clarity isn't showing session recordings](https://help.dropify.shop/en/pixels_tracking/hotjar-clarity-session-recording-not-showing/)
