What the connected systems should achieve
The practical purpose of analytics is to explain what happened after an inquiry. A person submitted a form, a staff member clarified the terms, an appointment was made and a visit took place. Management should be able to see this chain and understand the evidence for each transition. A report with separate counts of calls, inquiries and appointments does not by itself establish that connection.
Start with a few management questions: how many relevant inquiries came in, what proportion resulted in an appointment, how many scheduled appointments have reached their date, and how many visits are confirmed. Add the breakdowns the team actually uses to make decisions: branch, contact channel, period and responsible team. A large collection of charts cannot replace agreement on what the metrics mean.
This article concerns recordkeeping and data exchange. The reasons for losses are discussed separately in the article on the transition from inquiry to appointment, and costs and calculation denominators in the article on patient acquisition cost. Here, the aim is to obtain trustworthy data before calculating conversions and economics.
What CRM, medical information systems and web analytics do
CRM helps organize communication: register an inquiry, assign an owner, set a task and record the result of contact. A medical information system (MIS) generally holds the schedule and information about actual appointments; its precise functions depend on the product. Web analytics describes activity on the site and available information about traffic sources. Each system observes a different part of the process.
Assign a source of truth for each fact. For example, the website server confirms an incoming form, CRM confirms how an inquiry was handled, and the clinic's MIS records confirm a completed visit. This is a design decision that must be checked against actual practice. If attendance is recorded reliably in another system, the agreement should reflect that instead.
CRM does not have to contain a copy of the medical record, and a marketing report does not need every detail from the MIS. Linking stages requires a limited set of permitted fields. Before choosing a new product, check existing capabilities: whether events can be exported, appointment numbers are stable and who changes statuses. The problem may be a missing shared procedure even when the necessary functions already exist.
A person, inquiry, appointment and visit are different units
One person can submit a form, call and write in a messenger. These are multiple contacts that may relate to one need. One inquiry sometimes results in two appointments. An appointment can be rescheduled, and a completed visit is neither a submitted form nor a payment. If everything is reduced to a single “deal,” the report will begin to depend on an administrator's habits.
| Entity | Meaning | Do not substitute |
|---|---|---|
| Person | The person receiving the service | The phone number owner or browser visitor |
| Contact | An individual call, message or form submission | A separate need in every case |
| Inquiry | A task around which communication is organized | Every future interaction with the person |
| Appointment | An agreed visit with defined conditions | Interest in booking or a callback request |
| Visit | A confirmed visit that took place | A scheduled time, payment or the absence of cancellation |
Put these definitions in the instructions. Separately decide what counts as a new patient: new to the clinic group or to a specific branch. The classification should be based on an agreed history, not a new phone number. If the history is incomplete after a system migration, provide an “undetermined” value rather than confidently classifying every record as a first visit.
Create a data dictionary
A data dictionary is a short description of each metric and field. It specifies its meaning, unit, source, owner, permitted values and update time. For “visit date,” clarify whether this means the scheduled start, actual attendance or the time a staff member entered the result. For “source,” clarify whether it means the website referral, communication channel or the person's answer to an administrator's question.
Add rules for missing values. “Identifier not received,” “no website visit” and “source unknown” describe different circumstances. A zero amount cannot automatically be treated as a free appointment either: financial information may not have arrived yet. These distinctions help uncover errors that would otherwise be hidden behind a tidy average.
Every rule should have a version and effective date. If the team changes its definition of a qualified inquiry, note it in the report and retain the old method. Comparing periods without this explanation may show an improvement caused only by a change in counting. Assign ownership of the dictionary to a specific role at the clinic.
A minimal model of relationships
The illustrative scheme below is for discussion with an integration partner, not a required structure for a particular CRM or a ready-made database. The fields show relationships between objects. The content, storage location and availability of each field must be agreed separately. Technical field names are used only to make the discussion unambiguous.
| Object | Minimum fields within the authorized environment | Relationship and check |
|---|---|---|
| Inquiry | inquiry_id, created_at, channel, status | Stable ID; creation date does not change during edits |
| Contact | contact_event_id, inquiry_id, occurred_at | Several contacts can belong to one inquiry |
| Appointment | appointment_id, inquiry_id, branch_id, scheduled_at, status | Link to inquiry and history of changes |
| Visit | visit_id, appointment_id, occurred_at, confirmation_source | Confirmed fact with a clear source |
| Change event | event_id, object_id, event_type, version, occurred_at | History of statuses, retries and corrections |
| Delivery | event_id, destination, attempt, result, processed_at | Separate exchange result for each recipient |
The link to a person is stored separately wherever the architecture and staff permissions require. An analytics export does not automatically need another copy of contact details. Leave unconfirmed links marked for review. A matching surname or inquiry time is not sufficient reason to merge records silently.

Which events and identifiers to retain
For a pilot, events for creating an inquiry, assigning an owner, confirming an appointment, rescheduling, cancelling and confirming a completed visit are enough. Each event should answer what changed, in which object, when it happened and who confirmed it. An internal event does not have to be sent in full to an external analytics service.
Distinguish the event time from the delivery time. An administrator might enter a result in the evening, while the exchange finishes at night. Use the agreed time of the event for a calendar report and the delay between stages to monitor the integration. State the time zone explicitly, especially when branches are in different regions. Sorting by receipt time without considering the version can restore an old status.
Inquiry, appointment and visit IDs must remain the same on retransmission. When changing systems, provide a namespace or mapping table so old IDs do not collide with new ones. An analytics service's browser ID has a different purpose: it helps match online actions. It does not replace an internal patient ID or prove that only one person used the device.
Agree on statuses and transition rules
A status agreement includes the name, exact meaning, transition condition, owner and permitted corrections. “Processed” is too broad: it could mean an attempted call, a completed conversation or a closed task. It is better to describe confirmed actions and store the outcome separately. That way a change of employee does not change the report's meaning.
| Status | Condition for setting it | Exclude |
|---|---|---|
| Inquiry created | The system registered a separate task | A technical repeat of the same submission |
| Contact established | Communication about the inquiry is confirmed | A call attempt alone |
| Appointment confirmed | The conditions required by the clinic have been agreed | Preliminary interest without agreement |
| Appointment cancelled | A cancellation and its time are confirmed | Rescheduling to another time |
| No-show | The scheduled time has passed and the result has been checked | An appointment whose data has not yet been updated |
| Visit completed | The fact is received from the agreed source | An advance payment or the calendar date arriving |
Inquiries and appointments have their own statuses. An appointment can be cancelled while the inquiry continues: a staff member may be finding another time. Provide a limited list of reasons for closing an inquiry without medical details. An object closed by mistake should be recoverable with a record of the correction. The history explains changes; it is not for public monitoring of individual patients.
Duplicates, family members and multiple contacts
A phone number is useful for communication, but a poor sole key for identifying a person. Family members may book from the same number, while one person may use several numbers. Patients must not be merged automatically on the basis of a phone number alone. The clinic should have its own established identity verification process; a marketing system should not replace it with a probabilistic guess.
Define a technical duplicate separately. Redelivery of the same form with the same ID is a candidate for automatic suppression. A new message with a question after a form is a separate contact that can be linked to the earlier inquiry. Two requests for different dates may be two appointments even if the phone number is the same. Rules depend on the task, not just the interval between contacts.
For uncertain matches, create a manual review queue. Retain the original IDs and the ability to separate objects after an incorrect merge. In the report, show the number of technical repeats removed separately from the number of inquiries merged. Otherwise a drop in volume after cleanup is easily mistaken for an advertising problem.
For example, an adult submits a form about their own visit and later calls to book a relative. One contact number does not turn these inquiries into one patient and one result. The system should retain two separate tasks and the correct links to their respective appointments.
Rescheduling and moving between branches
Choose a rule for rescheduling. One option is to retain the appointment ID and change the scheduled time with a version history. Another is to close the old appointment as replaced and link it to a new one. Both approaches require a separate rescheduling flag; otherwise one person planning to attend will create several “new appointments” in the report.
The branch of the initial inquiry, the selected branch and the location of the completed visit are different fields. A central contact centre employee may receive a request for one address and agree on another later. The contact centre needs the original flow to assess its work; room utilization depends on the actual location. One overwritten column cannot reconstruct both views.
If one inquiry leads to several visits, do not multiply the inquiry itself. Keep linked appointments and count metrics at the appropriate level. Separately agree which visit counts as the first result of a particular inquiry. This decision is especially important when assessing initial acquisition, so subsequent visits do not look like newly acquired patients.
How to retain inquiry sources
Distinguish at least three attributes: where the person came to the website from, how they contacted the clinic and what they said about how they learned of it. “Search,” “phone” and “a friend's recommendation” can all describe the same journey. A dropdown combining these values in one column forces the administrator to discard some information.
Save automatically collected information at the time of the inquiry along with its origin. Record the person's answer separately and mark it as entered manually. If an employee cannot find an appropriate option in the list, provide “other” and a queue to clarify the category. Free-text comments should not silently become a new channel in each report.
Do not overwrite the original information with the last contact. A person may learn about the clinic from an article, return by searching its name, call the number on a map and then confirm the appointment in a messenger. Contact history helps retain the sequence. If there is no evidence for an automatic match, it is acceptable to keep several separate observations and state the limitation.
When there has been no online visit, do not create a fictional advertising source. An inquiry from a recommendation or a passerby remains in the clinic's overall records even if external web analytics cannot see it. The proportion of unknown sources is a data-quality metric in its own right.
How to approach attribution
Attribution is a rule for distributing a result among observed contacts. It is an analytical method, not a perfectly reconstructed reason for choosing a clinic. State the model, period and object being counted in the report. Comparing two channels loses meaning if one uses the first contact, the other the last referral, and rescheduling is counted differently.
Check the current model names. The Metrica documentation states that several older models were disabled from 20 May 2026. An old specification therefore cannot be carried into a new integration without checking. Record the selected setting in the report dictionary and note changes in methodology.
For internal decisions, it is useful to compare several views of the same dataset and see which conclusions hold. If changing the model completely changes a channel's evaluation, investigate the contact history. Choosing the result most favourable to a contractor does not make the analysis more accurate.

CRM and offline conversions in Metrica
Official mechanisms for transferring CRM data and offline conversions supplement online statistics with external events. Formats and matching rules differ. Choose a mechanism after defining the task and permitted data, then check the requirements for that specific format. This article does not imply that any patient data can be sent to the service.
To match CRM orders with online history, Yandex recommends storing ClientId in the CRM. But having an ID does not guarantee a successful match. Check the entire chain: obtaining, storing, sending and processing the value, and the result. If the ID is missing, do not substitute a patient number or an invented value just to fill the field.
Do not postpone the first exchange until the end of the month: services limit the period in which data can be supplemented. Check the precise deadlines and conditions in the current import documentation for your mechanism. The specification should include frequency, acceptable delay and how gaps are handled, consistent with these limits.
Checked on 20 October 2026: the documentation warns that matching statuses in offline conversion reports may currently be displayed incorrectly. It recommends viewing the current share of matched conversions in the counter settings on the “Data upload” page. Account for this warning during acceptance: a discrepancy in the indicator cannot automatically be declared a proven integration error.
Which data to limit and who receives access
First establish the purpose of processing and the minimum information needed. Checking the path from inquiry to visit generally does not require revealing diagnoses, examination results, prescriptions or the content of a conversation with a doctor to a marketer. Even the fact that someone contacted a medical organization requires separate assessment before sharing it with an external recipient. Technical feasibility does not establish that a particular exchange is permissible.
Metrica's terms prohibit sending identifying information outside functions that explicitly provide for such transfers. Do not include personal or medical information in UTM tags, URLs, goal names or custom events. Hashing or replacing a name with a code is not in itself blanket permission to transfer data.
Agree access roles separately: an administrator works with inquiries, medical staff with the information authorized for them, an analyst with a permitted dataset and management with the necessary totals. Give contractors separate access. Do not put integration secrets in client-side code, shared documents or widely accessible logs.
Test with synthetic records. Do not copy real databases into public spreadsheets, open forms, unprotected services or AI tools for convenience. The clinic's authorized specialists should assess recipients, retention periods and legal grounds for processing in light of its circumstances.
Reliable delivery: retries, errors and event order
The exchange must tolerate a temporarily unavailable recipient. This requires records of sent events and their results. Useful states include awaiting dispatch, sent, accepted, processed, rejected and requires review. A successful network response does not always mean every row was processed or matched to the right object. Checking the result is a separate step.
Idempotency means processing the same event again does not create a second result. For example, repeating a message about the same completed visit must not increase the visit count. Within the integration, a stable event key and a record of processed keys are agreed for this purpose. Check the external API's behaviour on retries against its documentation and a test example.
Distinguish temporary errors from data errors. After a temporary failure, retry with a limited number of attempts and increasing intervals. An invalid status or unknown branch requires the data to be corrected; endless retries will not help. Unprocessed events should enter a queue with an owner and a clear explanation of the cause.
An old event arriving late must not reverse a newer state. Provide versions and handling for events arriving out of order. Save corrections as separate actions with a reason. To reload a period, prepare a list of objects, expected changes and a duplicate check. After an exchange stops, the team should be able to recover the gap without manually examining every patient.
How to accept the integration
Acceptance starts with scenarios and expected results prepared in advance. The integrator demonstrates the path of a test inquiry through the systems and the delivery log. The clinic checks the meaning of statuses and how staff work. An API connection and a green “connected” indicator do not prove that the management report is correct.
| Scenario | Expected result | What to check |
|---|---|---|
| Form → appointment → visit | The complete chain can be reconstructed | Links, statuses and dates |
| Repeat of one submission | No new inquiry or visit | The same keys, one result |
| Two people share a number | Patients are not merged automatically | Separate objects and links |
| Rescheduling to another branch | History is retained, with one final visit | Old and new address, links between appointments |
| Old status arrives after a new one | The final state is not rolled back | Version and processing log |
| Recipient temporarily unavailable | A controlled retry takes place | Queue, attempts and subsequent result |
| Source unknown | It remains unknown | No artificial attribution to advertising |
| Invalid field in one row | The error is detected and assigned to an owner | Completeness of the remaining rows and ability to correct it |
For each scenario, retain anonymized evidence: test object IDs, expected value, actual result and notes. Repeat key checks after corrections. State which scenarios are not yet supported. A limitation documented before launch is easier to manage than a hidden assumption discovered after the budget has been redistributed.
How to monitor data completeness
Reconcile consecutive stages, not just the totals at either end. How many events did the source create, how many entered the queue, how many did the recipient accept, how many were processed and how many were matched successfully? Every difference should have an explanation. Comparisons require the same period, time zone and unit, as well as the time of the last update.
An illustrative example, not a client result: a source created 100 test events, the queue received 100, the recipient accepted 96 and 81 were matched. Four events have a delivery problem; another 15 have matching questions. Looking only at the 81 results would combine two different problems and cause the team to fix identifiers where the event never arrived at all.
Monitor the share of appointments without a linked inquiry, visits without an appointment, unknown branches, empty sources and overdue events. Show permitted exceptions separately, such as a walk-in visit if the clinic accepts them. Assign each indicator an owner, an acceptable value and an action for deviations. There is no universal benchmark for every clinic.
The Metrica offline conversions report provides information about matching and reasons for missing links. Use it alongside the service's current warnings and internal logs. A lower match rate calls for checking the data and platform operation, not an immediate conclusion that advertising has worsened.

What a management report should contain
Keep the first report small: inquiries, qualified inquiries, confirmed appointments, appointments whose date has passed, completed visits, cancellations, no-shows and unknown outcomes. Each metric needs a route to permitted detail or a review by its owner. A number whose composition cannot be explained is difficult to use for a decision.
Separate two views. A calendar view shows activity in a period: how many inquiries were handled and how many appointments occurred. A cohort view follows a group of inquiries created during a chosen period to their later outcomes. A July visit from a June inquiry belongs to July in the visit calendar and the June group in inquiry analysis. Both are consistent answers to different questions.
Show data maturity: some appointments are still in the future and some outcomes await confirmation. This week's inquiry conversion is not comparable with last month's completed history without that qualification. Add costs after checking the chain; budget composition is described separately in the article on the cost of promoting a clinic. Revenue, payments and profit also need their own definitions.
A 30-day implementation plan
Days 1–5: describe the current process
Choose one branch and a limited set of channels for a pilot. List the systems, access owners and points of manual entry. Agree the units of measurement and management questions. Run several synthetic inquiries through the current path. The result is a map of the actual process and a list of known gaps.
Days 6–10: agree on data and rules
Prepare a field dictionary, status agreement and relationship model. Assign a source of truth to each outcome. Check whether the selected exchange and the information sent are permissible. Record acceptance scenarios, expected delays and correction procedures. Do not start development with an undefined requirement to “send everything.”
Days 11–17: configure a limited exchange
Connect inquiry creation and confirmed appointment events, followed by the completed visit. Add a delivery log, controlled retries and an error queue. Use test data first. Check for unnecessary fields in outgoing messages, logs and the contractor's interface. Record discovered limitations in the technical description.
Days 18–24: complete acceptance and reconciliation
Run scenarios for duplicates, rescheduling, a shared family number, unknown source and delivery failure. Check completeness on a fixed dataset. Train employees to set statuses under the new rules. Investigate not only technical errors but situations where the interface forces an incorrect value.
Days 25–30: launch a controlled pilot
Prepare a small report and hold the first review with process owners. Assign regular reconciliation, an escalation path for urgent errors and an owner for changes. Decide whether to expand based on acceptance results. Thirty days is an example pilot plan, not a promise that every integration can be completed in that time: timing depends on access, systems and approvals.
Frequently asked questions
Can a clinic do without a separate CRM?
If the existing system supports inquiries, owners, statuses, history and verifiable exchange, a separate product may not be necessary. First describe the missing functions. Buying a CRM will not fix an undefined appointment or the absence of visit confirmation.
Should all figures match web analytics?
There is no general reason to expect a complete match: systems observe different objects and may have different matching limitations. Reconcile the same defined dataset and explain exceptions. Do not artificially add online IDs to hide inquiries made without a website visit.
How should inquiries from an aggregator or messenger be counted?
Retain the actual channel and the platform's available inquiry ID if its use is permitted. Separately record whether a confirmed online link exists. Organization listing views cannot automatically be turned into the personal history of a particular patient.
What should a clinic do when changing its MIS or CRM?
Keep an ID mapping table, status versions and the limits of available history. Test reloading and prevent old IDs from colliding with new ones. Mark the transition period in reports and state clearly when first-visit history is incomplete.
Can visits be sent straight into advertising optimization?
First assess whether the exchange is permissible, verify the event definitions and accept the transfer. Also check the selected advertising platform's rules and whether the mechanism is available. An event that is technically delivered but has the wrong meaning can give the optimization system an unsuitable signal.
Pre-launch checklist
- Inquiries, appointments and visits have separate definitions and stable IDs.
- Every outcome has an assigned source of truth and process owner.
- A shared phone number is not used as automatic proof of identity.
- Rescheduling and branch changes retain history and do not multiply the result.
- Communication channel, traffic source and the person's answer are recorded separately.
- Unknown values are visible in the report and are not replaced with a convenient category.
- Data contents, recipients and access are agreed; medical details do not enter marketing tags or logs.
- Retries, out-of-order events and temporary errors have been tested.
- There is a completeness reconciliation, error queue and procedure for recovering gaps.
- Management can see metric definitions and the update time.
A clinic marketing consultation can start with this model: define management questions, examine recordkeeping gaps and create a verifiable brief for the team. A description of the systems and anonymized examples is enough for an initial review; there is no need to share the patient database.
Sources and currency
Prepared on 20 October 2026. The relationship model, statuses, test scenarios and implementation plan are a proposed working approach and must be adapted to the clinic's processes. Metrica's capabilities and limitations were checked against official documentation: CRM data, offline data import, attribution models, and confidentiality. Before implementation, check the current terms of the chosen mechanism and how the service actually works.
