Open the service · Create and install a counter
Yandex Metrica shows site visits and visitor actions. Start with one goal: check successful form submission, errors and repetition, then independently confirm receipt in your system.
Where to open and how to configure
Ask Codex to find the site, counter code and goals. Confirm address, counter number and account. Reuse a working counter and locate its installation in the site template, CMS module or other accepted setting.
- Find the site's existing counter in Metrica.
- Compare its number in code and account, page scope and collection settings.
- If absent, prepare creation and connection through the official guide. The owner completes sign-in and terms; the assistant performs available project work.
Do not automatically enable Session Replay or additional collection for a form goal. Define needed data first. Metrica and PostHog analyse actions differently; check a suitable existing system before adding another. Separately verify goal availability to Yandex Direct strategies.
How to measure success
Choose a result, such as server acceptance and saving of an enquiry. A Submit click may fail and is not always success. Find where the code knows the outcome.
Following the JavaScript event-goal guide, create or reuse a suitable goal. Its report name and code event identifier serve different roles. Verify the identifier and condition point to the intended goal.
Use reachGoal with the actual counter number and goal identifier, considering code loading and firing after confirmed success. Do not copy another account's counter into production.
Check duplicate handlers and automatic goals that might be mistaken for the same metric. Result-page views, successful submissions and button clicks can have different goals. Save clear definitions.
How to test the counter and goal
Use fictional data without a real purchase. The debugger guide uses _ym_debug=2 in the page URL. Add it correctly while preserving existing parameters.
Test four cases:
- Page view without submission: no successful-enquiry goal.
- Form error or expected server rejection: no success event.
- Authorised success: the event appears in diagnostics and enquiry receipt is confirmed independently.
- Repeated clicks or result-page refresh: no silent double counting through duplicate handlers.
Event checks do not replace server duplicate prevention. If repetition creates a new result, confirm whether form rules allow it. After fixes, repeat at the real site and compare reports allowing processing delay.
For missing data, check counter number, code loading, event name, browser errors and permitted collection mode. Finding code in a file does not prove installation. Afterwards open the ordinary URL without debugging; do not publish full logs containing form data.
How to send confirmed outcomes
Enquiries and sales may occur on different days. Define recorded outcomes separately: confirmed order, qualified enquiry or purchase. Leave unanswered calls unverified rather than automatically spam or sales.
Following offline-data rules, prepare a suitable identifier, goal and event time, adding revenue and currency if needed. Matching depends on the source and available identifiers. Never invent visitor or order IDs for missing fields.
Prepare a schema without sending first. Agree data, recipient and purpose before uploading. After an authorised trial, inspect the offline-conversion report for visit matching and reasons for failures. File acceptance does not mean every row became a counted conversion.
Before recurring uploads, check retries, event time, duplicate protection and stopping. Do not add a second import beside a working one for the same outcome.
Result
You get a clearly defined goal with success, error and repetition checks, independently confirmed enquiry delivery and, if used, separate offline acceptance and visit-matching results.
Save counter number, goal name and identifier, connection location and a brief check record without personal data. Find dependent pages and ad strategies before stopping collection. Stopping future collection does not automatically delete history.
Next: compare enquiry measurement with actual receipt or prepare a Direct campaign using the checked goal.
Prompt for checking measurement
Paste into Codex or Work with project access:
Find the site, existing Yandex Metrica counter, installation location and active goals. Confirm account, address and counter number. Define one verified action, such as a server-saved enquiry; reuse a suitable goal.
Check the event identifier and reachGoal after success. Do not add another counter, handler or unnecessary collection. Perform available actions yourself; give the owner a specific step for sign-in, terms or new rights.
Using fictional data, test viewing without submission, errors, success and repetition. Compare events through available debugging and reports, and receipt independently in the system. Fix agreed errors and repeat at the actual address. Do not make a real purchase for practice.
For recorded outcomes, prepare identifier, goal and time fields without sending, adding revenue and currency if needed. Agree actual data and recipient before transfer. After an authorised trial, separately check acceptance and visit matching, errors, retries and stopping. Save actual results and untested limitations without customer data.