You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following custom dimensions are configured in Google Analytics, allowing additional data (in addition to Category, Action and Label) to be included in each data layer event fired from the front end.
6
6
7
7
-`currentQuery`
8
+
-`direction`
9
+
-`entityId`
8
10
-`entityType`
9
11
-`entityUrl`
10
12
-`facet`
11
13
-`fileFormat`
12
14
-`fileName`
13
15
-`fileType`
16
+
-`index`
14
17
-`min`
15
18
-`max`
16
19
-`releaseName`
@@ -29,13 +32,14 @@ The following custom dimensions are configured in Google Analytics, allowing add
@@ -44,10 +48,20 @@ The following custom dimensions are configured in Google Analytics, allowing add
44
48
- Label: "Clear All"
45
49
46
50
47
-
- Entity Type: "Facet"
48
51
- Current Query: `currentQuery`
52
+
- Entity Type: "Facet"
53
+
- Index: `index`
49
54
- Source: "Selected Terms"
50
55
56
+
###### Empty Search Results
57
+
58
+
- Category: "Search"
59
+
- Action: "Exception"
60
+
- Label: "Empty Result Set"
61
+
62
+
- Current Query: `currentQuery`
63
+
- Index: `index`
64
+
51
65
52
66
##### Sort Events
53
67
@@ -57,9 +71,29 @@ The following custom dimensions are configured in Google Analytics, allowing add
57
71
- Action: "Sort"
58
72
- Label: `sortBy`
59
73
60
-
- Entity Type: "Projects", "Samples" or "Files"
61
-
- Current Query: `currentQuery`
62
74
- Direction: "Asc" or "Desc"
75
+
- Current Query: `currentQuery`
76
+
- Index: `index`
77
+
78
+
##### Page Events
79
+
80
+
###### Next Page
81
+
82
+
- Category: "Search Results"
83
+
- Action: "Next Page"
84
+
- Label: `currentPageNumber`
85
+
86
+
- Current Query: `currentQuery`
87
+
- Index: `index`
88
+
89
+
###### Previous Page
90
+
91
+
- Category: "Search Results"
92
+
- Action: "Previous Page"
93
+
- Label: `currentPageNumber`
94
+
95
+
- Current Query: `currentQuery`
96
+
- Index: `index`
63
97
64
98
##### Project Events
65
99
@@ -256,11 +290,26 @@ Visualize events are configured as:
256
290
257
291
### GTM "Data Layer" Variables
258
292
259
-
##### Entity Type Name
293
+
##### Current Query
294
+
- Selected search terms at time of event.
295
+
- Used to capture `currentQuery` dimension from front end data layer.
296
+
- Corresponds to `currentQuery` custom dimension in Google Analytics.
297
+
298
+
##### Direction
299
+
- Specific to sort actions.
300
+
- Used to capture `direction` dimension from front end data layer.
301
+
- Corresponds to `direction` custom dimension in Google Analytics.
302
+
303
+
##### Entity Id
304
+
- Used to capture `entityId` dimension from front end data layer.
305
+
- Corresponds to `entityId` custom dimension in Google Analytics.
306
+
307
+
##### Entity Type
308
+
- UI entity type (see `index` for data entity type).
260
309
- Used to capture `entityType` dimension from front end data layer.
261
310
- Corresponds to `entityType` custom dimension in Google Analytics.
262
311
263
-
##### Entity URL Name
312
+
##### Entity URL
264
313
- Used to capture `entityUrl` dimension from front end data layer.
265
314
- Corresponds to `entityUrl` custom dimension in Google Analytics.
266
315
@@ -272,6 +321,11 @@ Visualize events are configured as:
272
321
- Used to capture `eventLabel` dimension from front end data layer.
273
322
- Corresponds to the Label value in a Google Analytics event.
274
323
324
+
##### Facet
325
+
- Used by search-related events when facet term is selected.
326
+
- Used to capture `facet` dimension from front end data layer.
327
+
- Corresponds to `facet` custom dimension in Google Analytics.
328
+
275
329
##### File Format
276
330
- Used to capture `fileFormat` dimension from front end data layer.
277
331
- Corresponds to `fileFormat` custom dimension in Google Analytics.
@@ -284,10 +338,35 @@ Visualize events are configured as:
284
338
- Used to capture `fileType` dimension from front end data layer.
285
339
- Corresponds to `fileType` custom dimension in Google Analytics.
286
340
341
+
##### Index
342
+
- Data entity type (eg Projects, Samples, Files).
343
+
- Used to capture `index` dimension from front end data layer.
344
+
- Corresponds to `index` custom dimension in Google Analytics.
345
+
346
+
##### Min
347
+
- Specific to age range searches.
348
+
- Used to capture `min` dimension from front end data layer, used during
349
+
- Corresponds to `min` custom dimension in Google Analytics.
350
+
351
+
##### Max
352
+
- Specific to age range searches.
353
+
- Used to capture `max` dimension from front end data layer, used during
354
+
- Corresponds to `max` custom dimension in Google Analytics.
355
+
287
356
##### Release Name
288
357
- Used to capture `releaseName` dimension from front end data layer.
289
358
- Corresponds to `releaseName` custom dimension in Google Analytics.
290
359
360
+
##### Source
361
+
- UI element where event was triggered from.
362
+
- Used to capture `source` dimension from front end data layer.
363
+
- Corresponds to `source` custom dimension in Google Analytics.
364
+
365
+
##### Term
366
+
- Used by search-related events when facet term is selected.
367
+
- Used to capture `term` dimension from front end data layer.
368
+
- Corresponds to `term` custom dimension in Google Analytics.
369
+
291
370
##### Tool Name
292
371
- Used to capture `fileType` dimension from front end data layer.
293
372
- Corresponds to `fileType` custom dimension in Google Analytics.
@@ -326,6 +405,16 @@ Visualize events are configured as:
326
405
- Sends "Cohort Matrix Copy to Clipboard" event to Google Analytics when `Cohort Matrix Copy to Clipboard` trigger is fired.
327
406
- Event data includes Category, Action and Label as well as Entity Type and Entity URL dimensions.
328
407
408
+
#### Entity Return to Tab
409
+
- Fired when tab (Projects, Samples, Files) is returned to from project detail or get dat flow.
410
+
- Sends "Entity Return to Tab" event to Google Analytics when `Entity Return to Tab` trigger is fired.
411
+
- Event data includes Category, Action and Label as well as the Current Query dimension.
412
+
413
+
#### Entity Select Tab
414
+
- Fired when tab is selected (Projects, Samples, Files).
415
+
- Sends "Entity Select Tab" event to Google Analytics when `Entity Select Tab` trigger is fired.
416
+
- Event data includes Category, Action and Label as well as the Current Query dimension.
417
+
329
418
#### Export Request
330
419
- Sends "Export Request" event to Google Analytics when `Export Request` trigger is fired.
331
420
- Event data includes Category, Action and Label as well as Entity Type and Tool Name dimensions.
@@ -338,18 +427,50 @@ Visualize events are configured as:
338
427
- Sends "Export Copy to Clipboard" event to Google Analytics when `Export Copy to Clipboard` trigger is fired.
339
428
- Event data includes Category, Action and Label as well as Entity Type, Entity URL and Tool Name dimensions.
340
429
341
-
#### Dataset Download
342
-
- Sends "Download" event to Google Analytics when `Dataset Download` trigger is fired.
430
+
#### Portal Link
431
+
- Sends "Portal Link" event to Google Analytics when `Portal Link` trigger is fired.
432
+
- Event data includes Category, Action and Label as well as Entity URL, Current Query and Source dimensions.
433
+
434
+
#### Project Manifest Request
435
+
- Sends "Project Manifest Request" event to Google Analytics when `Project Manifest Request` trigger is fired.
436
+
- Event data includes Category, Action and Label as well as Entity Type and Entity URL dimensions.
437
+
438
+
#### Project Manifest Download
439
+
- Sends "Project Manifest Download" event to Google Analytics when `Project Manifest Download` trigger is fired.
440
+
- Event data includes Category, Action and Label as well as Entity Type and Entity URL dimensions.
441
+
442
+
#### Project Manifest Download Link Copy to Clipboard
443
+
- Sends "Project Manifest Copy to Clipboard" event to Google Analytics when `Project Manifest Copy to Clipboard` trigger is fired.
444
+
- Event data includes Category, Action and Label as well as Entity Type and Entity URL dimensions.
445
+
446
+
#### Project View Tab
447
+
- Sends "Project View Tab" event to Google Analytics when `Project View Tab` trigger is fired.
448
+
- Event data includes Category, Action and Label as well as Entity URL, Entity ID and Current Query dimensions.
449
+
450
+
#### Release Download
451
+
- Sends "Download" event to Google Analytics when `Release Download` trigger is fired.
343
452
- Event data includes Category, Action and Label as well as Entity URL, File Format, File Name, File Type and Release Name dimensions.
344
453
345
-
#### Dataset Copy to Clipboard
346
-
- Sends "Copy to Clipboard" event to Google Analytics when `Dataset Copy to Clipboard` trigger is fired.
454
+
#### Release Copy to Clipboard
455
+
- Sends "Copy to Clipboard" event to Google Analytics when `Release Copy to Clipboard` trigger is fired.
347
456
- Event data includes Category, Action and Label as well as Entity URL, File Format, File Name, File Type and Release Name dimensions.
348
457
349
-
#### Dataset Visualize
350
-
- Sends "Visualize" event to Google Analytics when `Dataset Visualize` trigger is fired.
458
+
#### Release Visualize
459
+
- Sends "Visualize" event to Google Analytics when `Release Visualize` trigger is fired.
351
460
- Event data includes Category, Action and Label as well as Release Name and Tool Name dimensions.
352
461
462
+
#### Search
463
+
- Sends "Search" event to Google Analytics when `Search` trigger is fired.
464
+
- Event data includes Category, Action and Label as well as Entity ID, Entity Type, Current Query, Facet, Term, Source, Min, Max, and Index dimensions.
465
+
466
+
#### Search Results Page
467
+
- Sends "Search Results Page" event to Google Analytics when `Search Results Page` trigger is fired.
468
+
- Event data includes Category, Action and Label as well as Current Query and Index dimensions.
469
+
470
+
#### Search Results Sort
471
+
- Sends "Search Results Sort" event to Google Analytics when `Search Results Sort` trigger is fired.
472
+
- Event data includes Category, Action and Label as well as Current Query and Index dimensions.
473
+
353
474
### Front End Data Layer Event Configuration
354
475
355
476
```
@@ -368,6 +489,3 @@ where:
368
489
-`eventLabel` is the Label value sent to Google Analytics, always the full URL to the file or visualization tool.
369
490
-`dimension0` represents a dimension to be included in the event values sent to Google Analytics (eg `datasetName`, `toolName`, `releaseName`).
370
491
371
-
### Deployment
372
-
373
-
Currently published to develop, ux-dev, integration, staging and production.
0 commit comments