or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-4/

{
  "context": "This evaluation assesses how well the engineer uses the @nuxtjs/google-analytics package to implement event tracking functionality. It focuses on proper access to the $ga instance in Nuxt plugin contexts and correct usage of the event tracking API.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin context access",
      "description": "The plugin correctly accesses the $ga instance from the Nuxt context parameter passed to the plugin function (e.g., context.$ga or using destructuring like { $ga }).",
      "max_score": 25
    },
    {
      "name": "Event method usage",
      "description": "Uses the $ga.event() method (not other methods like $ga.page() or $ga.time()) for tracking all three types of interactions (button clicks, form submissions, video interactions).",
      "max_score": 20
    },
    {
      "name": "Event category parameter",
      "description": "Passes the correct eventCategory parameter to $ga.event() for each tracking method: 'Button' for button clicks, 'Form' for form submissions, and 'Video' for video interactions.",
      "max_score": 15
    },
    {
      "name": "Event action parameter",
      "description": "Passes the correct eventAction parameter to $ga.event(): 'click' for button clicks, 'submit' for form submissions, and the action parameter ('play' or 'pause') for video interactions.",
      "max_score": 15
    },
    {
      "name": "Event label parameter",
      "description": "Correctly constructs and passes the eventLabel parameter: combines button label with page for button clicks (e.g., 'Subscribe - /pricing'), combines form name with status for form submissions (e.g., 'Contact Form - success'), and uses video title for video interactions.",
      "max_score": 15
    },
    {
      "name": "Event value parameter",
      "description": "Correctly passes the eventValue parameter (a numeric value) for video interaction tracking using the timestamp parameter, and appropriately omits it for button and form tracking where no numeric value is needed.",
      "max_score": 10
    }
  ]
}