Event Sender
An interface for sending analytics events from Waves JS applications.
Usage:
import EventSender from '@waves/event-sender';
const sender = new EventSender();
const sender2 = new EventSender();
sender === sender2
const sender = EventSender.inactive();
sender.push('Product', 'GetClientClick', 'my_custom_label', 2.0);
sender.pushPageView(window.location.href, document.referrer);
sender.activate();
sender
.activate()
.push('Product', 'GetClientClick', 'my_custom_label', 2.0)
.pushPageView(window.location.href, document.referrer)
.push('Home', 'Subscribe');