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 package to control script loading behavior and prevent duplicate script conflicts. The focus is on proper configuration of the disableScriptLoader and checkDuplicatedScript options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Module registration",
"description": "The @nuxtjs/google-analytics module is properly registered in the buildModules array (or modules array for older Nuxt versions) in nuxt.config.js",
"max_score": 15
},
{
"name": "Tracking ID configuration",
"description": "The googleAnalytics configuration object includes the id property set to 'UA-123456-1' as specified",
"max_score": 10
},
{
"name": "disableScriptLoader option",
"description": "The disableScriptLoader option is set to true in the googleAnalytics configuration to prevent automatic script loading",
"max_score": 35
},
{
"name": "checkDuplicatedScript option",
"description": "The checkDuplicatedScript option is set to true in the googleAnalytics configuration to detect existing analytics scripts",
"max_score": 35
},
{
"name": "Configuration structure",
"description": "The googleAnalytics configuration object is properly structured with all required properties (id, disableScriptLoader, checkDuplicatedScript) at the correct level in nuxt.config.js",
"max_score": 5
}
]
}