docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This evaluation assesses how well the engineer uses the @nuxtjs/google-analytics package to implement automatic page tracking in a Nuxt.js 2 application. The focus is on proper module configuration, understanding of automatic tracking behavior, and correct usage of the package's API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Module registration",
"description": "The @nuxtjs/google-analytics module is correctly registered in the buildModules array in nuxt.config.js",
"max_score": 15
},
{
"name": "Tracking ID configuration",
"description": "The Google Analytics tracking ID (UA-123456789-1) is properly configured using the 'id' property in the googleAnalytics configuration object",
"max_score": 15
},
{
"name": "Automatic tracking enabled",
"description": "Automatic page tracking is enabled by the module configuration (this is the default behavior, so no explicit disabling of autoTracking should be present)",
"max_score": 20
},
{
"name": "$ga.page() usage",
"description": "The $ga.page() method is used for manual page tracking, demonstrating understanding of the global $ga instance injection",
"max_score": 20
},
{
"name": "Development mode handling",
"description": "The configuration correctly handles development mode by either omitting the 'dev' option (defaults to false/disabled in dev) or explicitly setting 'dev: false'",
"max_score": 15
},
{
"name": "Vue Router integration",
"description": "The implementation leverages the automatic Vue Router integration provided by the module for route change detection",
"max_score": 15
}
]
}