CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-nuxtjs--google-analytics

Google Analytics Module for Nuxt.js applications providing Universal Analytics integration

97

1.07x
Quality

Pending

Does it follow best practices?

Impact

97%

1.07x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-6/

{
  "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
    }
  ]
}

tile.json