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-4/

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

tile.json