Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"node": ">=6"
},
"dependencies": {
"@splitsoftware/splitio-commons": "1.6.0",
"@splitsoftware/splitio-commons": "1.6.1",
"@types/google.analytics": "0.0.40",
"@types/ioredis": "^4.28.0",
"ioredis": "^4.28.0",
Expand Down
5 changes: 2 additions & 3 deletions src/__tests__/gaIntegration/gaTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ export const DEFAULT_TRACKER = 't0';

const HIT_FIELDS = ['hitType', 'nonInteraction'];
const EVENT_FIELDS = ['eventCategory', 'eventAction', 'eventLabel', 'eventValue'];
const FIELDS = [...HIT_FIELDS, ...EVENT_FIELDS];
const FIELDS = [...HIT_FIELDS, ...EVENT_FIELDS]; // List of hit fields to spy, which are the ones set by the default SplitToGa mapper.

let hits = {};

/**
* Spy ga hits per tracker.
*
* @param {string[]} trackerNames names of the trackers to spy. If not provided, it spies the default tracker. i.e., `gaSpy()` is equivalent to `gaSpy(['t0'])`.
* @param {string[]} fieldNames names of the hit fields to spy. If not provided, it spies hit and event related fields. i.e., 'hitType', 'nonInteraction',
* 'eventCategory', 'eventAction', 'eventLabel', and 'eventValue', which are the ones set by default SplitToGa mapper.
* @param {boolean} resetSpy true to reset the list of captured hits.
*
* @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference}
*/
Expand Down