or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses the @nuxtjs/google-analytics package's screen view tracking functionality. The focus is on correct usage of the $ga.screenview() method with both string and object syntax, and proper integration within a Nuxt plugin.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Access $ga instance",
      "description": "The implementation correctly accesses the $ga instance from the Nuxt context (e.g., context.$ga or context.app.$ga) within the plugin",
      "max_score": 20
    },
    {
      "name": "Use $ga.screenview() method",
      "description": "The implementation uses the $ga.screenview() method from the @nuxtjs/google-analytics package to track screen views",
      "max_score": 25
    },
    {
      "name": "String syntax support",
      "description": "The implementation correctly passes a string directly to $ga.screenview() for simple screen name tracking (e.g., $ga.screenview('ScreenName'))",
      "max_score": 20
    },
    {
      "name": "Object syntax support",
      "description": "The implementation correctly passes an object with screen metadata to $ga.screenview() for detailed tracking (e.g., $ga.screenview({ screenName: 'Name', ...otherFields }))",
      "max_score": 25
    },
    {
      "name": "Plugin injection pattern",
      "description": "The implementation properly uses Nuxt's inject() function to make the tracking methods globally accessible throughout the application",
      "max_score": 10
    }
  ]
}