Adds Link clicks and button clicks tracking capabilities to your Conviva Application Analytics Library.
npm install @convivainc/conviva-js-appanalytics-click-tracking
Initialize your tracker with the LinkClickTrackingPlugin and ButtonClickTrackingPlugin:
import { LinkClickTrackingPlugin, ButtonClickTrackingPlugin } from '@convivainc/conviva-js-appanalytics-click-tracking';
Then use the available functions from this package to track to all trackers which have been initialized with this plugin:
import { enableLinkClickTracking, enableButtonClickTracking } from '@convivainc/conviva-js-appanalytics-click-tracking';
enableLinkClickTracking();
enableButtonClickTracking();