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 CustomEvent
s on document
.
See README for usage details.
Breaking Changes
The default "pageview" event changed (#11) from:
{ action: 'pageview' }
to
{ event: 'pageDataReady' }