Skip to content

Analytics ​

Article destinations ​

The Canvas Analytics IDs section accepts one GA4 Measurement ID (G-...) and one Yandex Metrica Counter ID. Empty article fields inherit the corresponding value from the client site's InitOptions.analytics. Article values override SDK values independently, and when both destinations resolve, Verstka attempts both callable provider APIs.

Verstka does not install or initialize either provider. IDs are embedded in public article data and are not secrets. Only trusted authors/publishers may choose destinations; a site with untrusted article authors must disable this feature with analytics: false.

Scroll depth ​

To measure article depth without placing Show events manually, select Canvas and open Scroll analytics. Enter a base name in Event name and choose a Step: 10%, 20%, 25%, 50%, or 100%. The default is 25%. Leave the name empty to disable scroll tracking.

For example, article_read with a 25% step produces:

text
article_read_0
article_read_25
article_read_50
article_read_75
article_read_100

article_read_0 is sent when the article first becomes visible. Further milestones measure the fraction of the article reached or passed by the bottom of its visible viewport; 100% means that edge has reached or passed the article's end. Horizontal frames use the right edge instead. This measures scroll position rather than confirming that every portion was viewed or read, or measuring reading time.

Each milestone is sent once per article in the current page document. Jumping forward sends all crossed milestones; scrolling backward or changing breakpoints does not repeat them. An article that fits in view can send every milestone immediately with _0.

Normal and horizontal frames and scroll-driven Slides are supported. Click-driven Slides do not send scroll milestones.

Widget and group events ​

Select a widget or group and open Analytics to configure its events.

EventTriggerOnce default
ShowPositive viewport entry after viewer hydrationOn
HoverCursor enters the widget or group rootOff
ClickNative click inside the widget or group rootOff

An empty event name disables that row. Once lasts only while the current page/tab document is loaded. Reloading or reopening the page allows the event again; no browser storage is used.

Group settings belong to that group and are not copied to its children. Show observes the group's bounds; Hover fires when entering the group, not when moving between its children. Click includes clicks on descendants. If both a group and its child have a Click event, clicking the child sends both. Each container has independent Once state, even when names match. Editing a multiple selection changes only the selected containers.

Event parameters ​

To compare clicks on buttons in different parts of an article, give both buttons the event name offer_click and set placement to hero on one and footer on the other.

In Analytics, click the list icon next to Once on the Show, Hover, or Click row. Fill in Key and Value. Select + Add parameter to add another pair. Verstka sends the parameters for that row with the event to the configured providers.

Valid edits save when you leave a field, press Enter, or close the popover. The × beside a row removes the parameter immediately. If selected items have different parameters for an event, select one item to edit its parameters.

You can add up to 25 parameters per event. Each key must be unique within the event, use up to 40 Latin letters, digits, or underscores, and start with a letter. Reserved keys such as send_to show an error. Values are text up to 100 characters. Use labels that contain no personal data.

Event names ​

Names contain 1–40 Latin letters, digits, or underscores and start with a letter. Case is preserved: CTA_Click and cta_click are different events. No prefix is required.

Scroll base names allow up to 36 characters to leave room for _100. GA4-reserved names such as page_view and click, and the query_id prefix, are rejected. Scroll tracking validates the generated names, so scroll is a valid base. See the GA4 naming rules for the reserved list.

Valid examples:

text
summer_offer_show
summer_offer_hover
CTA_Click

Do not put personal, account, contact, article, widget, or user-entered data in names.

Provider notes ​

GA4 picks up new names as it receives events. Register the keys you want to report on as event-scoped custom dimensions.

All widget, group, and scroll events are sent to Yandex Metrica through reachGoal. Before collecting conversions, configure a Conversion goal in the selected counter with an identifier matching the event name. To compare scroll milestones separately, configure a goal for each generated name, including its percentage suffix. Verstka does not create goals automatically. See goal setup and limits.

For a standalone goal with a matching identifier, sent values appear under Reports → Content → Event parameters. Yandex Metrica help.

Provider-owned enhanced measurement, click maps, or automatic goals can separately observe the same DOM action. Verstka does not disable or deduplicate them.

Preview ​

Client analytics is inactive in editor preview. Verify calls on the client site or through the documented client-site integration.