Events Interception

EventNative javascript tracker could be configured to intercept events from third-part tracking systems. Currently, we support Google Analytics and Segment's Analytics.js.

EventNative will intercept all events, transform them to an internal structure and pass further to the original destination. EventNative initialization code must be executed (added into <head> section if tracking code is added directly) before intercepted tracking code (GA or Segment)

Only current version of GA Javascript API is supported. We do not support Legacy API (aka ga.js)

Event interceptors should be explicitely enabled with segment_hook or ga_hook parameter (please see Configuration Reference).

Intercept Google Analytics Events
Intercept Segment Event
Intercept Google Analytics Events
eventN.init({
key: "...",
tracking_host: "....",
ga_hook: true
});
Intercept Segment Event
const { eventN } = require('@ksense/eventnative');
eventN.init({
key: "...",
tracking_host: "....",
segment_hook: true
});