trackAction
An analytics event for something the viewer did (an engage), for your own analytics.
Type
assocArray: { name, e0_kingdom, e1_phylum, e2_class, e3_order, e4_family, e5_genus, e6_species, metadata }
Payload
| Field | Type | Description |
|---|---|---|
name | string | The event's name: the action (e5_genus) when there is one, else the phylum. A panel may give its event its own name. |
e0_kingdom | string | "panel", "overlay" or "module" |
e1_phylum | string | "engage" |
e2_class | string | The panel type, overlay class or module name |
e3_order … e6_species | string | The rest of the event's taxonomy; for a panel engage, e3_order is the panel ID, e5_genus the action and e6_species its target. "" when not used. |
metadata | assocArray | The event's fields, typed. Missing values are left out. |
An event a panel sends only to your channel carries name and metadata, without the taxonomy fields; its
optional fields with no value arrive as the string "null". An event with a name of its own also sends it as
metadata.event_name.
| Kingdom | Engage | metadata |
|---|---|---|
panel | The viewer acted in a panel (select, expand, collapse, ...) | event (your event ID), action, the panel's own fields, and the page's league, sport and airing when set |
overlay | The viewer pressed OK on an overlay | event, action: "open_panel", panel_target, overlay_text, overlay_cta_text, version |
module | The viewer engaged a module | event, display_text, visibility_duration_timer |
Example
' In createMaestroPanel()
m.maestro.observeFieldScoped("trackAction", "onMaestroAnalytics")
m.maestro.observeFieldScoped("trackImpression", "onMaestroAnalytics")
sub onMaestroAnalytics(event as object)
analyticsEvent = event.getData()
if analyticsEvent = invalid then return
yourAnalytics.track(analyticsEvent.name, analyticsEvent.metadata) ' your analytics platform
end sub
Notes
- Views and dismisses arrive on
trackImpression. - Session events are not sent to your channel.
- A client's own overlays send their own fields: see the client's Overlays page.
- Events Maestro also tracks don't arrive when analytics are off for your site. See Analytics.
- Each panel documents its actions and fields.