Skip to content

Subscriber tags and segmentation #40

Closed

Description

@JuansesDev

Problem

Today a broadcast goes to all active subscribers of a project. There is no way to send to a subset: only customers, only free users, only people in country X, only people who opened the last campaign, etc. For real-world marketing this is the basic table stakes.

Proposal

Two-layer model.

Tags (manual labels). A subscriber has tags TEXT[] (or a join table). Tags are project-scoped. CRUD via UI and API (POST /subscribers/{id}/tags). Bulk-tag on import / CSV upload / by filter.

Segments (saved filters). A segment is a saved query: tags includes [...] AND/OR status = active AND/OR engagement_score > 50 AND/OR subscribed_at within last N days. Stored as JSON-serialized predicate. Re-evaluated on each send (no materialized membership).

Broadcast and campaign endpoints accept segment_id instead of (or alongside) the implicit 'all active'.

Acceptance criteria

  • A subscriber can carry an arbitrary number of tags
  • Tag CRUD via UI and API
  • A segment can be created, saved, edited, and used by broadcasts
  • Importing a CSV can apply tags inline
  • Pro Analytics gains a segment-filter on the overview

Activity

  1. added
    enhancement
    roadmap
    team
    on Apr 28, 2026
  2. JuansesDev commented on Apr 30, 2026

    @JuansesDev
    MemberAuthor

    Tier reclassified: Team plan ($29/mo) instead of Pro.

    Reasoning: tags and segments are the workflow that lets a marketing team actually run targeted campaigns ("send to tagged:vip AND opened-last-campaign"). Without segmentation, broadcasts are indiscriminate and that's a Pro-level transactional/observability use case. With segmentation, you're firmly in marketing-team territory — Team-tier value.

    Implementation note: gate via FeatureSegments = "subscribers.segments" in the validator. The schema work (tags column + segments table) lands in Core because it's just data; the broadcast endpoint accepting segment_id is what gets gated by Team license at the handler.

  3. JuansesDev commented on Aug 19, 2026

    @JuansesDev
    MemberAuthor

    Delivered in 0.7.0 (custom fields, tags & segments — #83). Subscribers have project-scoped tags, plus saved segments (filters over status / tags / custom fields) via the pkg/segments engine, with UI + API. Closing as done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendenhancementfrontendroadmapteam

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions