Repository navigation
Expand file tree
/
Copy pathanalytics-parameters.mts
More file actions
105 lines (100 loc) · 3.19 KB
/
Copy pathanalytics-parameters.mts
File metadata and controls
105 lines (100 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/** This is a copy of analytics-parameters.ts and is needed for `yarn admin validate-user-analytics` due to ts-node. */
/**
* GA built-in request parameters
* @see https://www.thyngster.com/ga4-measurement-protocol-cheatsheet
* @see http://go/depot/google3/analytics/container_tag/templates/common/gold/mpv2_schema.js
*/
export enum RequestParameter {
ClientId = 'cid',
DebugView = '_dbg',
GtmVersion = 'gtm',
Language = 'ul',
NewToSite = '_nsi',
NonInteraction = 'ni',
PageLocation = 'dl',
PageTitle = 'dt',
ProtocolVersion = 'v',
SessionEngaged = 'seg',
SessionId = 'sid',
SessionNumber = 'sct',
SessionStart = '_ss',
TrackingId = 'tid',
TrafficType = 'tt',
UserAgentArchitecture = 'uaa',
UserAgentBitness = 'uab',
UserAgentFullVersionList = 'uafvl',
UserAgentMobile = 'uamb',
UserAgentModel = 'uam',
UserAgentPlatform = 'uap',
UserAgentPlatformVersion = 'uapv',
UserId = 'uid',
}
/**
* User scoped custom dimensions.
* @remarks
* - User custom dimensions limit is 25.
* - `up.*` string type.
* - `upn.*` number type.
* @see https://support.google.com/analytics/answer/10075209?hl=en
*/
export enum UserCustomDimension {
UserId = 'up.ng_user_id',
OsArchitecture = 'up.ng_os_architecture',
NodeVersion = 'up.ng_node_version',
NodeMajorVersion = 'upn.ng_node_major_version',
AngularCLIVersion = 'up.ng_cli_version',
AngularCLIMajorVersion = 'upn.ng_cli_major_version',
PackageManager = 'up.ng_package_manager',
PackageManagerVersion = 'up.ng_pkg_manager_version',
PackageManagerMajorVersion = 'upn.ng_pkg_manager_major_v',
}
/**
* Event scoped custom dimensions.
* @remarks
* - Event custom dimensions limit is 50.
* - `ep.*` string type.
* - `epn.*` number type.
* @see https://support.google.com/analytics/answer/10075209?hl=en
*/
export enum EventCustomDimension {
Command = 'ep.ng_command',
SchematicCollectionName = 'ep.ng_schematic_collection_name',
SchematicName = 'ep.ng_schematic_name',
Standalone = 'ep.ng_standalone',
SSR = 'ep.ng_ssr',
Style = 'ep.ng_style',
Routing = 'ep.ng_routing',
InlineTemplate = 'ep.ng_inline_template',
InlineStyle = 'ep.ng_inline_style',
BuilderTarget = 'ep.ng_builder_target',
Aot = 'ep.ng_aot',
Optimization = 'ep.ng_optimization',
}
/**
* Event scoped custom mertics.
* @remarks
* - Event scoped custom mertics limit is 50.
* - `ep.*` string type.
* - `epn.*` number type.
* @see https://support.google.com/analytics/answer/10075209?hl=en
*/
export enum EventCustomMetric {
AllChunksCount = 'epn.ng_all_chunks_count',
LazyChunksCount = 'epn.ng_lazy_chunks_count',
InitialChunksCount = 'epn.ng_initial_chunks_count',
ChangedChunksCount = 'epn.ng_changed_chunks_count',
DurationInMs = 'epn.ng_duration_ms',
CssSizeInBytes = 'epn.ng_css_size_bytes',
JsSizeInBytes = 'epn.ng_js_size_bytes',
NgComponentCount = 'epn.ng_component_count',
AllProjectsCount = 'epn.all_projects_count',
LibraryProjectsCount = 'epn.libs_projects_count',
ApplicationProjectsCount = 'epn.apps_projects_count',
}