docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses the @nuxtjs/google-analytics module to configure Google Analytics integration in a Nuxt.js 2 application. The focus is on proper module registration, configuration options, and understanding of development vs production behavior.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Module Registration",
"description": "The @nuxtjs/google-analytics module is correctly registered in the buildModules array (not modules array, as this is a build-time module)",
"max_score": 25
},
{
"name": "Tracking ID Configuration",
"description": "The tracking ID is properly configured using the googleAnalytics.id property or google-analytics.id property with the value 'UA-123456-7'",
"max_score": 20
},
{
"name": "Development Mode",
"description": "The dev option is explicitly set to true in the module configuration to enable analytics in development environments (via googleAnalytics.dev or google-analytics.dev)",
"max_score": 20
},
{
"name": "Debug Configuration",
"description": "The debug.sendHitTask option is set to false to prevent actual data transmission during development (via googleAnalytics.debug.sendHitTask or google-analytics.debug.sendHitTask)",
"max_score": 20
},
{
"name": "Runtime Configuration",
"description": "The publicRuntimeConfig is properly configured with a googleAnalytics or google-analytics section to support dynamic tracking ID assignment at runtime",
"max_score": 15
}
]
}