Online booking widget for your website
The “Book a service” button on your website. The client fills out a short form (service, preferred date, make, model and license plate of the vehicle, name, phone), and the request immediately appears in the Online booking (widget) section, while administrators and employees with access to requests receive a push notification in the mobile app.
The Online booking (widget) module. It is included in the standard set of modules for new accounts; if the section is missing, the module is disabled for the account and Support can enable it. While the module is disabled or the account is archived, requests from the widget are not accepted—the visitor will see “Auto service not found”.
What to add to your website
Ready-to-use code with your identifier is available in the Online booking (widget) section: while there are no requests, the “Online booking widget for your website” block is open at the top of the page; later, it is available under Widget code in the More menu to the right of the search. Click “Copy code” and paste it into your website. The code looks like this:
<script
src="https://AutoServiceOnline.ru/widget/booking.js"
data-account="ВАШ_ACCOUNT_ID"
defer>
</script>
<div id="edocflow-booking-root"></div>
The data-account parameter is your account identifier; it is already inserted in the code from the section. Below the code, there are two optional fields: the Yandex.Metrica counter number and a link to the privacy policy. If you fill them in, the data-metrika and data-privacy-url attributes will be added to the code (see below). If the section is missing (the module is disabled), the code will send a message to Support.
The <div id="edocflow-booking-root"></div> block is optional: the button will appear wherever this block is placed; without it, the button will be placed at the very end of the page.
If your website already has the old code with the www.AutoServiceOnline.ru or edocflow.ru address, you do not need to change it—it also works. The new code is only needed for Yandex.Metrica goals and the consent line: the old script does not support these settings.
Where to insert it
The widget works on any website where you can insert custom HTML code: website builders such as Tilda, WordPress, or a website on your own domain.
- Tilda — the “HTML code” block.
- WordPress — the “Custom HTML” block or the theme footer.
- Your own website — before the closing
</body>tag.
There is no booking page without a website: if you do not have a website at all, there is nowhere to place the widget.
What the client will see
- A blue “Book a service” button.
- After clicking it, an “Online booking” window opens with the text “Leave a request and we will call you back to agree on a time” and the following fields:
- Required service * — free text;
- Preferred date and time * — tomorrow, 10:00 by default;
- Make, Model, License plate — optional; the make can be selected from suggestions of popular makes;
- Your name *;
- Phone *.
- The Send request button. After submission, the client sees “Thank you!” and “We have received your request and will contact you to agree on a time.”
If a field is not filled in, a hint appears below the form: “Specify the service”, “Specify your preferred date”, “Enter your name”, or “Enter a valid phone number”.
The widget has no dependencies and uses pure JavaScript. It does not break the website layout, weighs about 20 KB (7 KB compressed), and does not send requests until the client submits a request. The button colour, texts, and set of fields cannot be customised: they are the same for all auto services. There is no option to select an arbitrary time slot or service bay, load services from the price list, or send the client an email confirmation. If SMS reminders to clients and the “Remind about the booking” rule are enabled, the “Thank you!” screen displays the line “We will send an SMS reminder the day before your visit”, and after you confirm the booking, the client receives an SMS the day before the visit.
Where the request came from
If the client came through a link with UTM tags (an advert in Yandex Direct, VKontakte, or an email newsletter), the widget saves the tags and passes them with the request. The tags must be added to the advert link. An example advert link:
https://ваш-сайт.ru/zamena-masla?utm_source=yandex&utm_medium=cpc&utm_campaign=maslo
utm_source— where the person came from (yandex, vk, rassylka);utm_medium— traffic type (cpc — paid clicks, email — newsletter);utm_campaign— campaign name; optionally, you can also addutm_term(keyword) andutm_content(advert).
In the Online booking (widget) section, each request displays the following:
- The Vehicle column—“Toyota Camry” and the license plate in a separate line (for requests received before the widget update, they are shown on one line, as entered by the client);
- The Source column—for example, “yandex / cpc” (
utm_source / utm_medium). If there are no tags, the website from which the client came is displayed (“Visit from yandex.ru”). If there is no referring website either, Direct visit is displayed. This happens when a person enters the address manually, opens a bookmark, or comes from a messenger; - Click the request row (on a mobile phone, click Expand) to open the Where the request came from block: Source, Campaign, Keyword, Advert, Visit from, and Page—the address of the website page where the client clicked the button, with a Copy button;
- The search row searches by both license plate and campaign name;
- For administrators and employees with access to requests, the push notification for the service and time includes “Source: yandex / cpc”.
When you click “Create order”, the vehicle is added to the order note (“Vehicle: Toyota Camry, А123ВС161”). The source remains in the request and is not printed on the work order.
Only five utm_* tags, the page address without parameters, and the referring website are saved—no cookies, IP address, or advertising identifiers (yclid, gclid).
There is no need to change code inserted earlier: the vehicle and source fields will appear automatically once the visitor’s browser loads the new version of the script. This usually happens within an hour, but it may take longer for visitors whose browser retained the old copy earlier. To see the new form immediately, open the website page with the cache cleared (Ctrl+F5). Requests from the old script arrive as before: the vehicle is displayed on one line, with no source.
Yandex.Metrica goals
Goals show the conversion funnel: how many people opened the form, started filling it out, submitted a request, or closed the form without completing it. Connecting them is optional.
The widget does not install Yandex.Metrica or load its code: it sends events to the counter already installed on your website. The counter number is displayed in Metrica next to the website name.
How to enable it, step by step:
- Open Auto service → Online booking (widget) and click More → Widget code (if the block is already open at the top of the page, it is already displayed).
- Enter the number in the Yandex.Metrica counter number (optional) field—digits only, no more than 12—and click Save. The code in the window will update immediately:
data-metrika="12345678"will appear in it. - Click Copy code and replace the old widget code on your website with it.
- In Yandex.Metrica, open your counter: Setting → Goals → Add goal. Select the JavaScript event condition, use the name from the table below the code, and insert the identifier using the Copy button in the same row. Create all four goals this way.
- Open the website, click Book a service, and close the window. The data may take up to one day to appear in the Metrica reports.

| Metrica goal | Identifier | When it is triggered |
|---|---|---|
| Opened the booking form | asonline_booking_open | the client clicked “Book a service” |
| Started filling out the form | asonline_booking_start | the client changed any field |
| Submitted the request | asonline_booking_submit | the request was received |
| Closed the form without submitting | asonline_booking_close | the client closed the window (cross, Esc, click outside the window) without submitting |
Each goal is counted no more than once per form opening. Neither the form data nor the name or phone number is sent to Metrica. Until the counter number is specified, the block displays the hint “Specify the counter number so that goals can be sent”. If the website has no Metrica counter, the goals are simply not sent, while requests continue to work as usual.
Consent line for data processing
You can display the line “By submitting a request, you consent to the processing of personal data” below the Send request button. The words “processing of personal data” will become a link to your website’s privacy policy (it will open in a new tab).
- In the Widget code block, enter the address of the page containing your privacy policy on your website in the Link to the personal data processing policy (optional) field. The address must start with
https://, for examplehttps://ваш-сайт.ru/privacy. - Click Save. The code will include
data-privacy-url="https://ваш-сайт.ru/privacy". - Copy the code and replace the old code on your website with it.
You manage the privacy policy page on your website; its text is not available in AutoServiceOnline. The form has no checkbox, and consent is not saved in the request. While the field is empty, the line is not displayed in the form. If the address is entered incorrectly (without https:// or with a space), the field will highlight an error and cannot be saved.
Spam protection
- No more than 5 attempts from one IP address per 10 minutes.
- No more than 30 accepted requests per account per hour—changing the IP address does not help. Incorrect attempts (empty name, invalid phone number) do not count toward this limit and do not prevent other clients from submitting requests.
- The phone number is checked: it must contain 10 to 15 digits.
If the limit is exceeded, the client sees “Too many requests in a short period of time. Please try again later.”. There is no CAPTCHA or duplicate check: submitting twice will create two requests.
Common issues
- “The client says the request is not being submitted”. Ask which text they see below the form. If they see “Too many requests”, wait about ten minutes. If they see “No connection to the server. Check your internet connection and try again.”, check the internet connection; if the issue persists, send the website address via the Support chat.
- “The goals are not appearing in Metrica”. Check the following in order: the Widget code block specifies the number of the counter installed on the website and Save has been clicked; the updated code with
data-metrikahas been inserted into the website; the Metrica counter itself is installed on the website; the goals have been created with the JavaScript event condition and their identifiers have been copied using the Copy button; the website page has been refreshed with Ctrl+F5; and one day has passed since the first trigger. - “The Source column in the request is empty or displays ‘Direct visit’”. The URL did not contain
utm_*tags, and the browser did not pass the referring website. This happens when the address is entered manually or when the visit comes from a bookmark or messenger. To see advertising data, add tags to your advert links. Requests received before the widget update have no source at all. - “The button does not appear”. Make sure that the code contains
data-accountwith your identifier and that the code was inserted into an HTML block rather than regular text.