Skip to main content

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:

FieldCarries
trackActionEngages: something the viewer did (select, expand, open a panel from an overlay, ...)
trackImpressionViews 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 is view, dismiss or section_view. Some events have a name of their own, also sent as metadata.event_name.
  • metadata: the event's fields, with their types kept.
  • Events that Maestro also tracks carry its taxonomy, e0_kingdom to e6_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 their metadata.
  • Events a panel sends only to your channel carry name and metadata alone. 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.