Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TrackingSubscriber

Hierarchy

Callable

  • Invoked each time a {@link Tracker} (or child Tracker) method produces a new TrackingInfo instance.

    example
    const tracker = trackers.create((info) => {
    console.log(JSON.stringify(info));
    });
    example
    // delegating tracking entries to a Redux store

    import { store } from '~/path/to/actions';

    const tracker = trackers.create((info) => {
    store.dispatch({
    type: `track:${info.type}`,
    payload: info
    });
    });

    Parameters

    Returns void