Add new fields to analytics event context: status, page_type, page_document_type (#21115)
* Add new fields to analytics event context: status, page-type, page-document-type * Update schema-event.js * Typescript * Add status meta to error pages * Update DefaultLayout.tsx * Update DefaultLayout.tsx * Update building-and-testing-nodejs-or-python.tsx
This commit is contained in:
@@ -63,6 +63,22 @@ const context = {
|
||||
description: 'The language the user is viewing.',
|
||||
enum: Object.keys(languages),
|
||||
},
|
||||
page_document_type: {
|
||||
type: 'string',
|
||||
description: 'The generic page document type based on URL path.',
|
||||
enum: ['homepage', 'early-access', 'product', 'category', 'mapTopic', 'article'], // get-document-type.js
|
||||
},
|
||||
page_type: {
|
||||
type: 'string',
|
||||
description: 'Optional page type from the content frontmatter.',
|
||||
enum: ['overview', 'quick_start', 'tutorial', 'how_to', 'reference'], // frontmatter.js
|
||||
},
|
||||
status: {
|
||||
type: 'number',
|
||||
description: 'The HTTP response status code of the main page HTML.',
|
||||
minimum: 0,
|
||||
maximum: 999,
|
||||
},
|
||||
|
||||
// Device information
|
||||
os: {
|
||||
|
||||
Reference in New Issue
Block a user