isChannel (cockpit/channels.ts)

better-chatbot · apps/web/src/lib/cockpit/channels.ts · typescript · MIT
email

* Acquisition channels written by the marketing site's first-party collector into `site_events.channel`. Only the vocabulary lives here: the classifier runs on the marketing site, Navigator just reads and labels the rows. /

// Source: https://github.com/keinsaasforever/better-chatbot | License: MIT | Copyright 2025 better-chatbot
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Acquisition channels written by the marketing site's first-party collector
 * into `site_events.channel`. Only the vocabulary lives here: the classifier
 * runs on the marketing site, Navigator just reads and labels the rows.
 */

export const CHANNELS = [
  "google_ads",
  "google",
  "bing",
  "linkedin_ads",
  "linkedin",
  "reddit_ads",
  "reddit",
  "meta_ads",
  "meta",
  "x",
  "youtube",
  "chatgpt",
  "perplexity",
  "claude",
  "gemini",
  "copilot",
  "newsletter",
  "referral",
  "direct",
] as const;

export type Channel = (typeof CHANNELS)[number];

/** Brand and product names; identical in every lo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key