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
- In Yandex Metrica, open your counter settings and copy the counter id (or the whole counter code).
- In the counter, create JavaScript event goals. The default identifiers are
add_to_cart,begin_checkout,purchaseandlead. - In Dropify, go to Apps > Discover, find Yandex Metrica and click Install.
- 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.
- 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.
- 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.
- 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 reachedthe identifier in Events must match the goal's JavaScript event identifier exactly.