@guardian/ophan-tracker-js 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AbTestInfo } from './abtest.js';
|
|
2
|
+
import type { Acquisition } from './acquisition.js';
|
|
2
3
|
import type { ComponentEvent } from './component-event.js';
|
|
4
|
+
import type { Consent } from './consent.js';
|
|
3
5
|
import type { InPageClick } from './inpageclick.js';
|
|
4
|
-
import
|
|
6
|
+
import { Interaction } from './interaction.js';
|
|
5
7
|
import type { AudioEvent, VideoEvent } from './media.js';
|
|
6
|
-
import type { TMembershipTier, TSubscriptionType } from './subscription.js';
|
|
7
8
|
import type { TPlatform } from './platform.js';
|
|
8
|
-
import type {
|
|
9
|
-
import { Interaction } from './interaction.js';
|
|
9
|
+
import type { TMembershipTier, TSubscriptionType } from './subscription.js';
|
|
10
10
|
/**
|
|
11
11
|
* Details about a page view - only populated for _PAGE_VIEW
|
|
12
12
|
* event types
|
|
@@ -26,7 +26,7 @@ interface PageView {
|
|
|
26
26
|
totalDaysVisited?: number;
|
|
27
27
|
/** Calculated average days between recent visits */
|
|
28
28
|
averageDaysBetweenRecentVisits?: number;
|
|
29
|
-
/**
|
|
29
|
+
/** No longer used in Ophan. Replaced by Frequency */
|
|
30
30
|
regular?: boolean;
|
|
31
31
|
subscriptionType?: TSubscriptionType;
|
|
32
32
|
membershipTier?: TMembershipTier;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/ophan-tracker-js",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -11,6 +11,23 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "NPM-dist/ng.js",
|
|
13
13
|
"types": "NPM-dist/types/ng.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./NPM-dist/ng.js",
|
|
17
|
+
"types": "./NPM-dist/types/ng.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./MMA": {
|
|
20
|
+
"import": "./NPM-dist/manage-my-account.js",
|
|
21
|
+
"types": "./NPM-dist/types/manage-my-account.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
"*": {
|
|
26
|
+
"MMA": [
|
|
27
|
+
"NPM-dist/types/manage-my-account.d.ts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
14
31
|
"devDependencies": {
|
|
15
32
|
"@babel/preset-env": "^7.22.10",
|
|
16
33
|
"@babel/preset-typescript": "^7.24.7",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A set of UTM parameters
|
|
3
|
-
* https://en.wikipedia.org/wiki/UTM_parameters
|
|
4
|
-
*/
|
|
5
|
-
interface UtmParameters {
|
|
6
|
-
/**
|
|
7
|
-
* Identifies which site sent the traffic
|
|
8
|
-
*/
|
|
9
|
-
utmSource?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Identifies what type of link was used, such as cost per click or email.
|
|
12
|
-
*/
|
|
13
|
-
utmMedium?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Identifies a specific product promotion or strategic campaign.
|
|
16
|
-
*/
|
|
17
|
-
utmCampaign?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Identifies search terms.
|
|
20
|
-
*/
|
|
21
|
-
utmTerm?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Identifies what specifically was clicked to bring the user to the site, such as a banner ad or a text link. It is often used for A/B testing and content-targeted ads.
|
|
24
|
-
*/
|
|
25
|
-
utmContent?: string;
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|