github nytimes/react-tracking v1.0.0
v1.0.0 - Custom optional `dispatch()`

latest releases: v9.3.2, v9.3.1, v9.3.0...
7 years ago

New Features

You can now provide a custom dispatch() function (#10) as the second argument to a top-level decorated component. If provided, this dispatch function will be called to dispatch tracking data instead of the default behavior of dispatching CustomEvents on document.

See README for usage details.

Breaking Changes

The default "pageview" event changed (#11) from:

{ action: 'pageview' }

to

{ event: 'pageDataReady' }

Don't miss a new react-tracking release

NewReleases is sending notifications on new releases.