github nytimes/react-tracking v4.0.0
v4.0.0 - New default dispatch() behavior

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

Breaking Change

In #35 the default dispatch behavior of emitting a CustomEvent has been removed in favor of pushing tracking objects to window.dataLayer[]. This is a good default for most pass that use Google Tag Manager for tracking.

If you had previously been relying on CustomEvent, you will need to now import that module into your project and define the call to CustomEvent as your new overriding dispatch() function on some top-level component. See the main README for details.

If you had previously been defining dispatch() on some top-level component, then this is not a breaking change from your perspective because any overriding dispatch function declaration will be used instead of the default behavior.

Don't miss a new react-tracking release

NewReleases is sending notifications on new releases.