or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation criteria assesses the engineer's ability to access and use the @nuxtjs/google-analytics package's global $ga instance across different Nuxt.js contexts (components, middleware, and plugins). The focus is on demonstrating proper understanding of how the package makes analytics functionality available throughout the application lifecycle.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "$ga in component",
      "description": "Correctly accesses $ga instance in the Vue component using this.$ga to track page views (using this.$ga.page() or this.$ga.page(path))",
      "max_score": 25
    },
    {
      "name": "$ga event tracking",
      "description": "Uses this.$ga.event() in the component to track button click events with appropriate parameters (eventCategory, eventAction, or shorthand syntax)",
      "max_score": 20
    },
    {
      "name": "$ga in middleware",
      "description": "Accesses $ga instance in middleware via context (ctx.$ga or context.$ga) to track navigation events using ctx.$ga.event() or similar",
      "max_score": 25
    },
    {
      "name": "$ga in plugin",
      "description": "Accesses $ga instance in the plugin file using context.$ga or inject parameters to create the error tracking helper function",
      "max_score": 20
    },
    {
      "name": "Plugin injection pattern",
      "description": "Uses proper Nuxt plugin injection pattern (inject function) to make the $trackError helper globally available, demonstrating understanding of how global accessibility works in the package",
      "max_score": 10
    }
  ]
}