{"id":15287108,"url":"https://github.com/hex-digital/nuxt-segment","last_synced_at":"2025-04-13T05:04:25.741Z","repository":{"id":181292350,"uuid":"666519465","full_name":"hex-digital/nuxt-segment","owner":"hex-digital","description":"Nuxt 3 module for Segment","archived":false,"fork":false,"pushed_at":"2023-10-19T11:08:19.000Z","size":585,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T05:03:43.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex-digital.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-14T18:23:00.000Z","updated_at":"2024-04-12T22:11:56.000Z","dependencies_parsed_at":"2024-11-18T14:51:50.652Z","dependency_job_id":"05dcf875-5d41-40fd-b05d-e89d9d7f5ca2","html_url":"https://github.com/hex-digital/nuxt-segment","commit_stats":null,"previous_names":["hex-digital/nuxt-segment"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex-digital%2Fnuxt-segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex-digital%2Fnuxt-segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex-digital%2Fnuxt-segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex-digital%2Fnuxt-segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex-digital","download_url":"https://codeload.github.com/hex-digital/nuxt-segment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665748,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T15:24:19.004Z","updated_at":"2025-04-13T05:04:25.718Z","avatar_url":"https://github.com/hex-digital.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nGet your module up and running quickly.\n\nFind and replace all on all files (CMD+SHIFT+F):\n- Name: My Module\n- Package name: my-module\n- Description: My new Nuxt module\n--\u003e\n\n# Nuxt Plausible\n\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\n\u003e [Nuxt 3](https://nuxt.com) module to integrate [Segment analytics 2.0](https://github.com/segmentio/analytics-next/tree/master/packages/browser#readme).\n\n- [✨ \u0026nbsp;Release Notes](/CHANGELOG.md)\n\u003c!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) --\u003e\n\u003c!-- - [📖 \u0026nbsp;Documentation](https://example.com) --\u003e\n\n## Features\n\n- 📯 Track events and page views manually with [composables](#composables)\n- 📯 Optionally track page views automatically with the router integration\n- 📂 [`.env` file support](#configuration)\n- 🧺 Sensible default options\n- 🦾 SSR-ready\n\n## Quick Setup\n\n1. Add `@hexdigital/nuxt-segment` dependency to your project\n\n```bash\n# Using pnpm\npnpm add -D @hexdigital/nuxt-segment\n\n# Using yarn\nyarn add --dev @hexdigital/nuxt-segment\n\n# Using npm\nnpm install --save-dev @hexdigital/nuxt-segment\n```\n\nAdd `@hexdigital/nuxt-segment` to the `modules` section of your Nuxt configuration:\n\n```ts\n// `nuxt.config.ts`\nexport default defineNuxtConfig({\n  modules: ['@hexdigital/nuxt-segment']\n})\n```\n\n3. Add configuration in `nuxtConfig.segment` or in `nuxtConfig.runtimeConfig.public.segment`\n\nThis module supports two ways of configuration:\n- Directly in key `segment` of the Nuxt config: `nuxtConfig.segment`\n- In public runtimeConfig: `nuxtConfig.runtimeConfig.public.segment`\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Generate type stubs\nnpm run dev:prepare\n\n# Develop with the playground\nnpm run dev\n\n# Build the playground\nnpm run dev:build\n\n# Run ESLint\nnpm run lint\n\n# Run Vitest\nnpm run test\nnpm run test:watch\n\n# Release new version\nnpm run release\n```\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/my-module\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-downloads-href]: https://npmjs.com/package/my-module\n\n[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[license-href]: https://npmjs.com/package/my-module\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js\n[nuxt-href]: https://nuxt.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex-digital%2Fnuxt-segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex-digital%2Fnuxt-segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex-digital%2Fnuxt-segment/lists"}