Skip to main content

trackImpression

An analytics event for something the viewer saw (a view or a dismiss), 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: "view" or "dismiss", or "section_view" for a panel view of one section. A panel may give its event its own name.
e0_kingdomstring"panel", "overlay" or "module"
e1_phylumstring"view" or "dismiss"
e2_classstringThe panel type, overlay class or module name
e3_order … e6_speciesstringThe rest of the event's taxonomy; for a panel, e3_order is the panel ID and e6_species the section viewed. "" 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.

KingdomWhenmetadata
panelA panel was viewedevent (your event ID), the panel's own fields, and the page's league, sport and airing when set
overlayAn overlay showed (view), or timed out (dismiss)event, version, overlay_text; on view also trigger_type, timecoded
moduleA module showed (view) or was dismissed (dismiss)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​

  • Engages arrive on trackAction.
  • 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 view fields.