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
| Field | Type | Description |
|---|---|---|
name | string | The 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_kingdom | string | "panel", "overlay" or "module" |
e1_phylum | string | "view" or "dismiss" |
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, e3_order is the panel ID and e6_species the section viewed. "" 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 | When | metadata |
|---|---|---|
panel | A panel was viewed | event (your event ID), the panel's own fields, and the page's league, sport and airing when set |
overlay | An overlay showed (view), or timed out (dismiss) | event, version, overlay_text; on view also trigger_type, timecoded |
module | A 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.