Analytics
The SDK sends Maestro its own analytics. It also hands your channel a copy of every panel, overlay and module event, so you can feed them to your own analytics without tracking the panel yourself.
Receiving events
Observe two fields on the panel node, as in Getting Started:
| Field | Carries |
|---|---|
trackAction | Engages: something the viewer did (select, expand, open a panel from an overlay, ...) |
trackImpression | Views and dismisses: something the viewer saw |
' 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
Payload
Every event has a name and a metadata associative array:
name: what to call the event in your analytics. For an engage it is the action (expand,collapse, or the panel's own action); for a view it isview,dismissorsection_view. Some events have a name of their own, also sent asmetadata.event_name.metadata: the event's fields, with their types kept.- Events that Maestro also tracks carry its taxonomy,
e0_kingdomtoe6_species, so you can tell a panel, overlay or module event apart without parsing the name. A field with no value is left out of theirmetadata. - Events a panel sends only to your channel carry
nameandmetadataalone. Their optional fields with no value arrive as the string"null".
The field-by-field shape is on the trackAction and
trackImpression pages.
What you don't receive
- Session events (SDK start and end, page and heartbeat beacons) go to Maestro only.
- Events Maestro also tracks reach your channel only when Maestro records them: none arrive before the SDK has loaded its site configuration, and none when analytics are turned off for your site. Events a panel sends only to your channel are not affected.
- Your channel never receives device, session, site or page IDs.
Which events a panel sends
Your client SDK's panel, overlay and module pages each have an Analytics section: when each event fires, then every event with its fields. An event several panels send is listed on each of their pages.