Support for Adobe Analytics tracking support-for-adobe-analytics-tracking

The Flyout Viewer supports Adobe Analytics tracking out of the box.

Out-of-the-box tracking section-ba994f079d0343c8ae48adffaa3195a3

The Flyout Viewer supports Adobe Analytics tracking out-of-the-box. To enable tracking, pass the proper company preset name as config2 parameter.

The viewer also sends a single tracking HTTP request to the configured Image Server with the viewer type and version information.

Custom tracking section-cda48fc9730142d0bb3326bac7df3271

To integrate with third-party analytics systems, it is necessary to listen to the trackEvent viewer callback and process the eventInfo argument of the callback function as necessary. The following code is an example of such handler function:

var flyoutViewer = new s7viewers.FlyoutViewer({
 "trackEvent":function(objID, compClass, instName, timeStamp, eventInfo) {
  //identify event type
  var eventType = eventInfo.split(",")[0];
  switch (eventType) {
   case "LOAD":
    //custom event processing code
   //additional cases for other events

The viewer tracks the following SDK user events:

SDK user event
Sent when...
the viewer is loaded first.
an asset is swapped in the viewer using setAsset() API.
the flyout is activated or the zoom level is changed.
an image is panned.
an image is changed by clicking or tapping on a swatch.