What can be configured
- Pageview - is transmitted by default when tracking is enabled. The mechanics of the event is as follows: if there is no event for the entire system in the database when connecting a site to tracking, this event will be created and will be automatically linked to the connected site. If the “Pageview” event already exists - the site (store) being connected to tracking will be linked to it;
- Clicks on elements;
- Interacting with forms: starting filling in a form and sending a form. ;
- Visitor registration on the site - records the moment when a user tries to register on the site;
- Login - the moment a visitor logs in to the site;
- File upload. The selector is applied to the link - the widget automatically extracts the file name or similar information from it;
- A click on communications - an event which is recorded when a user clicks on WhatsApp, Telegram or other control elements with the help of which the user contacts an operator for support.
Important!
Note
You can create an event, following Marketing → Site Visitor Tracking → Event Tracking, by clicking New Event.
Platforms and event code
An event can be configured for a website, iOS, Android and other apps. When creating or editing an event, select one or more platforms. Web (website) is selected by default.
If you select at least one platform other than Web, open the settings block for those platforms. For example, for iOS and Android it is called Event settings for iOS, Android. This block displays the event code and a button to copy it. The app uses this code to associate the transmitted action with the event configured in the CRM. The code is generated automatically from the event name and can be changed before saving.
The code must contain at least five characters. Latin letters, digits, hyphens and underscores are allowed, for example product_opened. The code must be unique within the tracker connection, regardless of letter case. After saving, renaming the event does not automatically change its code.
Website settings
To select pages and CSS selectors, expand Event settings for Web. These settings apply to the Web platform. Automatic customer creation is configured using the switches above the platform selection. Page and CSS selector settings are not configured separately for iOS, Android or an app: the data is transmitted programmatically.
If you deselect Web, the existing website settings are retained but hidden. Selecting Web again makes them available.
Sending events from an app
- Select iOS or Android in the event settings.
- Copy the event code.
- Pass it in the
codeparameter of the appropriate mobile SDK (software development kit) method.
The SDK specifies the current platform, ios or android, automatically. When sending an event directly through the application programming interface (API), include the actual platform in the event data. If the transmitted platform is a mobile platform or app, that same platform must be selected in the event settings.
Events without a specified platform, including historical events, are treated as website events. Website connection and the existing method of sending events through the web tracker remain unchanged.
Page and screen addresses
The page_url and referrer_url fields accept an absolute uniform resource identifier (URI) with a nonempty scheme, such as https://example.com/catalog or app://product/123?source=catalog. For page_view, the page address is required; the referrer address is optional. Different URIs are counted separately. Filtering applies to the full URI, including parameters and fragments.
HTTP and HTTPS addresses are displayed as links. A URI with another scheme is displayed as text or as a value that can be copied.
Selection of event type
To save a customer when the event is executed, you should activate the “Automatically create a customer” switch. This will allow you to collect a database of target customers. The customer will be saved provided that the event data contains enough information to create a customer (full name, mail, etc.). Routine pageviews do not create a new customer in the system.
For Web events, specify on which pages the event will be tracked. If you select the “On a specific page” option, you will need to specify the page URL in the following format: https://example.ru/product/123.
URL filtering in preconfigured tracker events
The following wildcard characters are supported:
*— any number of characters. Example:wh*will find what, white and why, but not awhile or watch.?— one character in the specified position. Example:b?llwill find ball, bell and bill.[]- one character from the bracketed group. Example:b[ae]llwill find ball, bell, but not bill.!— inverts the bracketed group. Example:b[!ae]llwill find bill and bull but not ball or bell,[!a]*will find everything that doesn’t start with “a”.-— range. You need to specify the range in ascending order (from A to Z, not Z to A). Example:b[a-c]dwill find bad, bbd and bcd.#— any digit. Example:1#3will find 103, 113 and 123.\— token shielding. Example:*will find exactly the asterisk character, not just any character.
For filtering, you should explicitly specify places that are not taken into account by the filter. For example, if you want to filter only the /register address, you can specify a filter with the whole domain: https://example.com/register*. A filter of the form *register* will be taken into account on all pages that have the word “register” in their address, for example, https://example.com/faq/why-register.
Selection of CSS selector
The option is used to precisely identify the elements that the user interacts with on the page. Selectors make it possible to track only the necessary elements even in a complex page structure.
To copy a CSS selector of an element on a website, you can use the developer tools in the browser or additional browser extensions (for example, Selector Gadget). Using the Google Chrome browser as an example, we will consider the instruction, which also works in most other modern browsers.
How to copy an element selector:
- Open the site in a browser.
- Right-click on the desired element (e.g. button, header, image).
- In the context menu, select “View code” or “Inspect” (depending on the browser language).
- In the developer panel that opens, the element will be automatically highlighted in the HTML structure.
- Right-click on the element in the code and select: Copy → Copy selector.
Another way to select an element on a HTML page:
- Open the site in a browser.
- Right-click anywhere on the page.
- In the context menu, select “View code” or “Inspect” (depending on the browser language)..
- In the developer panel that opens, click the button
. - Select the desired element on the page
- In the developer panel, the element will be automatically highlighted in the HTML structure.
- Right-click on the element in the code and select: Copy → Copy selector.
Using CSS selector in a tracker
Using as an example a part of the website code, we consider the #contactForm in the tracker in RetailCRM:
- The found selector is specified
- Selector name
- Selector type
Next you need to save the changes on the page.
The created event can be edited or deleted.
Events and selector types
- Click on element: specifies a selector for any clickable element: button, link, etc.
- User registration: specifies the selector of the registration form to be filled in. The event is executed when an attempt is made to submit the registration form. The parameters specify the selectors of the input fields, from which the data for the parameters is taken (for example, a selector like
input[type=email]may be suitable for filling thecustomer_emailproperty of this event). - ** Account login:** specifies the selector of the login form. Contains only the
customer_emailproperty, for which the input field selector is specified. - Click on communication: specifies the selector of the button or link. Contains the
customer_emailproperty, for which the input field selector is specified. - Beginning of form filling: specifies the form selector.
- Submit form: specifies the form selector.
- File download: specifies the selector of a link to a file, or a link to the button that initiates the download.
List of events
You can find the required event using filters. The principle of their operation is similar to filters in the list of orders and is described in detail in the corresponding article.



