nuxt / nuxt/modules

[Module Listing Request]: `@hexdigital/nuxt-segment`

Open
#694 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

module-request
Dominant language
TypeScript
Stars
1.1k
Forks
354
Avg merge
10h 18m
Merged PRs (30d)
12

Description

Description

Description

@hexdigital/nuxt-segment

This module provides an integration with Segment. It allows for quick integration with the analytics platform, including an integration with vue-router.

There is an existing module, but it only supports Nuxt v2, and it is seemingly unfortunately no longer maintained: https://github.com/dansmaculotte/nuxt-segment.

This new module allows for a fast integration with the full feature set of Segment, and is comparable to existing modules for other analytics platforms, such as zadigetvoltaire/nuxt-gtm and nuxt-modules/plausible.

I'd like to propose adding this new module, while keeping the previous one just for the v2 listing.

Features

📯 Track events and page views manually with composables
🗺️ Optionally track page views automatically with the router integration
📂 .env file support
🧺 Sensible default options
🦾 SSR-ready

Links

Release Notes
📦 NPM

Nuxt Compatibility

Nuxt 3

Repository

https://github.com/hex-digital/nuxt-segment/

npm

https://www.npmjs.com/package/@hexdigital/nuxt-segment

Nuxt Compatibility

Nuxt 3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the nuxt/modules repository's existing module-listing conventions and the linked @hexdigital/nuxt-segment repository and npm package. Confirm how Nuxt 3 modules are distinguished from Nuxt 2 entries, then add the proposed module listing while retaining the previous module for the v2 listing.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.