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.
currentQuery
direction
entityId
entityType
entityUrl
facet
fileType
index
min
max
relatedEntityId
(previouslyfileName
)relatedEntityType
(previouslyfileFormat
)relatedEntityUrl
source
term
toolName
-
Category: "Search"
-
Action: "Select" or "Deselect"
-
Label:
termName
orbetween 0 and 100 years
-
Current Query:
currentQuery
-
Entity Type: "Facet"
-
Facet:
facetName
-
Index:
index
-
Max:
max
-
Min:
min
-
Source: "Cohort Export", "Manifest Export", "Facet Browser", "Search" or "Selected Terms"
-
Term:
termName
orbetween 0 and 100 years
-
Category: "Search"
-
Action: "Clear"
-
Label: "Clear All"
-
Current Query:
currentQuery
-
Entity Type: "Facet"
-
Index:
index
-
Source: "Selected Terms"
-
Category: "Search"
-
Action: "Exception"
-
Label: "Empty Result Set"
-
Current Query:
currentQuery
-
Index:
index
-
Category: "Search Results"
-
Action: "Sort"
-
Label:
sortBy
-
Direction: "Asc" or "Desc"
-
Current Query:
currentQuery
-
Index:
index
-
Category: "Search Results"
-
Action: "Next Page"
-
Label:
currentPageNumber
-
Current Query:
currentQuery
-
Index:
index
-
Category: "Search Results"
-
Action: "Previous Page"
-
Label:
currentPageNumber
-
Current Query:
currentQuery
-
Index:
index
-
Category: "Project"
-
Action: "View Overview", "View Metadata", "View Matrices", "View External Resources"
-
Label:
projectShortname
-
Entity URL:
http:/path/to/project
-
Current Query:
currentQuery
-
Category: "Project"
-
Action: "View Deprecated Project"
-
Label:
projectShortname
-
Entity ID:
projectId
-
Entity URL:
http:/path/to/project
-
Current Query:
currentQuery
-
Category: "Project"
-
Action: "View External Resource"
-
Label:
projectShortname
-
Entity ID:
projectId
-
Entity URL:
http:/path/to/project
-
Current Query:
currentQuery
-
Related Entity Id:
portalName (portalOrg)
-
Related Entity Type: "Integration"
-
Related Entity URL:
portalUrl
-
Category: "Project"
-
Action: "View External Resource"
-
Label:
projectShortname
-
Entity ID:
projectId
-
Entity URL:
http:/path/to/project
-
Current Query:
currentQuery
-
Related Entity Id:
supplementaryLinkUrl
-
Related Entity Type: "Supplementary Link"
-
Related Entity URL:
supplementaryLinkUrl
-
Category: "Manifest"
-
Action: "Request"
-
Label:
query
-
Entity Type: "Cohort Manifest"
-
Category: "Manifest"
-
Action: "Download"
-
Label:
query
-
Entity Type: "Cohort Manifest Link"
-
Entity URL:
http://path/to/download
-
Category: "Manifest"
-
Action: "Copy to Clipboard"
-
Label:
query
-
Entity Type: "Cohort Manifest Link"
-
Entity URL:
http://path/to/download
-
Category: "Manifest"
-
Action: "Download"
-
Label:
projectTitle
-
Entity Type: "Project Manifest Link"
-
Entity URL:
http://path/to/download
-
Category: "Manifest"
-
Action: "Copy to Clipboard"
-
Label:
projectTitle
-
Entity Type: "Project Manifest Link"
-
Entity URL:
http://path/to/download
-
Category: "File"
-
Action: "Download"
-
Label:
fileName
-
Current Query:
currentQuery
-
Entity URL:
http://path/to/download
-
Related Entity Type:
fileType
-
Related Entity ID:
fileName
-
Category: "Export"
-
Action: "Request"
-
Label:
query
-
Entity Type: "Cohort Export"
-
Tool Name: "Terra"
-
Category: "Export"
-
Action: "Launch"
-
Label:
query
-
Entity Type: "Cohort Export Link"
-
Entity URL:
http://path/to/terra
-
Tool Name: "Terra"
-
Category: "Export"
-
Action: "Copy to Clipboard"
-
Label:
query
-
Entity Type: "Cohort Export Link"
-
Entity URL:
http://path/to/terra
-
Tool Name: "Terra"
{
event: "eventName"
eventAction: "eventAction",
eventLabel: "eventLabel",
dimension0: "dimension0Value",
...
}
where:
event
is the Category value sent to Google Analytics, always "Dataset".eventAction
is the Action value sent to Google Analytics, either "Download" or "Visualize".eventLabel
is the Label value sent to Google Analytics, always the full URL to the file or visualization tool.dimension0
represents a dimension to be included in the event values sent to Google Analytics (egdatasetName
,toolName
).