Skip to main content

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​

FieldTypeDescription
namestringThe event's name: the action (e5_genus) when there is one, else the phylum. A panel may give its event its own name.
e0_kingdomstring"panel", "overlay" or "module"
e1_phylumstring"engage"
e2_classstringThe panel type, overlay class or module name
e3_order … e6_speciesstringThe 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.
metadataassocArrayThe 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.

KingdomEngagemetadata
panelThe 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
overlayThe viewer pressed OK on an overlayevent, action: "open_panel", panel_target, overlay_text, overlay_cta_text, version
moduleThe viewer engaged a moduleevent, 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.