I have a question regarding two seemingly different ways to implement sending an event in google analytics as a non-interaction hit type.
(1) Protocol docs: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#ni
In query param:
&ni=1
/collect?v=1&t=event&ni=1
(2) Analytics dev guide: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
ga('send', 'event', 'Videos', 'play', 'Fall Campaign', {
nonInteraction: true
});
which I inferred allows me to do this:
ga('send', {
hitType: 'event'
eventCategory: 'myCategory',
eventAction: 'myAction',
eventLabel: 'myLabel',
nonIteraction: true
});
However, when I look at the network traffic in the chrome browser dev console I do not see the "ni=1" url parameter. Here is a list of the parameters that are present (values excluded):
v: _v: a: t: _s: cd: dl: dp: ul: de: dt: sd: sr: vp: je: ec: ea: an: av: aid: aiid: _u: jid: gjid: cid: tid: _gid: z:
What is the difference betweeen these two implementations, and are the end results the same?

