Analytics Events Registry (lib/analytics.ts)

llms-txt-hub · analytics, events, tracking, constants, typescript

Defines constant event names and a helper to track analytics actions across the application.

// Source: https://github.com/mperkins0155/llms-txt-hub | License: MIT | Copyright 2025 David Dias
// Provided via justclaw.it.com; keep this notice with the code.
// Event categories for better organization
export const ANALYTICS_EVENTS = {
  // Load More & Pagination
  LOAD_MORE: 'Load More',
  LOAD_MORE_WEBSITES: 'Load More Websites',
  LOAD_MORE_MEMBERS: 'Load More Members',
  SHOW_ALL_WEBSITES: 'Show All Websites',
  SHOW_LESS_WEBSITES: 'Show Less Websites',

  // Search & Discovery
  SEARCH_SUBMIT: 'Search Submit',
  SEARCH_AUTOCOMPLETE_CLICK: 'Search Autocomplete Click',
  SEARCH_FILTER: 'Search Filter',
  SEARCH_CLEAR: 'Search Clear',

  // Navigation & Links
  WEBSITE_CLICK: 'Website Click',
  MEMBER_PROFILE_CLICK: 'Member Profile Click',
  CATEGORY_CLICK: 'Category Click',
  EXTE

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

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

Get a free API key