What are events?
Events are any data sent to Yandex Metrica. For instance, a pageview or page scrolling, filling out a form, or clicking a banner.
You can add parameters to individual events in Yandex Metrica to identify the event and obtain more data. For example, for the event “Viewing a FAQ section”, you could send a parameter with the name of this section: “Frequently Asked Questions”.
How to send parameters to Yandex Metrica
Yandex Metrica offers a special method, called "params", for sending parameters. It is used to transmit additional information about the event, such as:
onclick=“ym(XXXXXX, “params”, {level1_1:{level2_1:{level3_1: “example1”,level3_2: “example2”}}})”
These parameters can be used with other methods, for example, with reachGoal, to transmit additional information about the completed goal:
onclick=“ym(XXXXXX, ’reachGoal’, ’TARGET_NAME’, {level1_1:{level2_1:{level3_1: “example1”,level3_2: “example2”}}})”
To learn more about working with parameters, see Help.
Yandex Metrica now offers even more reports on events
- Event parameters: Analyze events on specific website pages.
- Goal parameters: Conduct in-depth analyses of your transmitted goals and related parameters.
As before, you can work with session parameters — a set of parameters transmitted within a session.
For data handling convenience, we added more dimensions and metrics to the new reports. You can learn about them in the documentation: in the Events subsection under Dimensions and Metrics.
New features in LogsAPI
We’ve also updated the Pageviews section in LogsAPI. It’s now called "Events" and has several new useful fields added.
Using the PageViewID to view an event, you can identify an event that occurred during a particular pageview. This way, you can analyze event chains in detail.
The params field contains events that are transmitted as arrays of parameters. These parameter arrays are raw, meaning they have not yet been organized into structured levels.
The Ecommerce field enables the export of raw ecommerce events along with other types of events. This approach allows you to analyze the effectiveness of your online store more deeply and handle data with greater ease.
By leveraging data about user interactions with products during sessions, you can build a comprehensive funnel for your online store. Additionally, you can create detailed funnels for specific products and their attributes using the ym:s:eventsProduct array.
Read more about all the new fields in the LogsAPI documentation.