awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
segmentio avatar

segmentio/analytics.jsArchived

0
View on GitHub↗

Analytics.js

This project is a JavaScript analytics integration library and client-side event collector designed to record user behavior and distribute that data to multiple third-party analytics destinations through a unified interface. It functions as a customer data platform that identifies users, manages traits, and routes event streams to various analytics tools and data warehouses.

The library distinguishes itself through a multi-destination event router and HTTP tracking middleware that intercepts and modifies event payloads before transmission. It implements identity management primitives for user identification, identity aliasing to combine profiles, and cross-subdomain tracking by storing identifiers on the top-level domain.

The system covers a broad range of capabilities including user interaction monitoring for page views, form submissions, and link clicks, as well as marketing campaign tracking via UTM parameter extraction. For reliability, it utilizes event request batching, local storage-based retry queues with exponential backoff, and browser keepalive flags to ensure data capture during page redirects.

The library also supports tracking pixels for environments that restrict JavaScript execution and provides mechanisms for integration URL obfuscation to prevent request blocking.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
segment.com/libraries/analytics.js
↗

Features

  • Multi-Destination Data Routing - Implements a unified interface to route collected customer data to multiple third-party analytics destinations simultaneously.
  • Multi-Destination Event Routing - Routes a single stream of event data to multiple external analytics destinations through a unified interface.
  • Page View Tracking - Records page visits and allows the attachment of custom categories and properties to describe the view.
  • Behavioral Data Collection - Collects behavioral user interaction events from digital interfaces for distribution to analytics tools.
  • Customer Data Management - Identifies unique users and associates them with specific traits and historical identities across sessions.
  • Customer Data Platforms - Functions as a customer data platform for gathering user signals and creating a unified behavioral view.
  • Third-Party Data Connectors - Provides connectors to import user and event data from cloud applications for distribution to analytics tools.
  • User Identification - Links users and their actions to a unique ID and a set of descriptive traits.
  • Event Tracking APIs - Provides a tracking API that enables analytics event transmission from any environment capable of making HTTP requests.
  • Event Middleware Systems - Uses a sequence of middleware functions to intercept and modify event data before dispatching it to destinations.
  • Stream Event Interception - Employs middleware to intercept, modify, or drop event payloads before they reach their final destinations.
  • Behavioral Event Collectors - Provides a browser-based tool for recording page views, form submissions, and link clicks.
  • User Interaction Event Logging - Logs specific user actions and includes optional properties to provide context for behavioral analysis.
  • User Interaction Recording - Logs specific user actions like form submissions and link clicks for behavioral analytics.
  • Analytics Integration Libraries - Provides a JavaScript library for collecting user behavior and distributing event data to multiple analytics destinations.
  • Cross-Subdomain Identity Tracking - Tracks unique users across subdomains by storing anonymous identifiers on the top-level domain.
  • Web Analytics Integrations - Integrates web applications with analytics services to track user behavior and page views.
  • Reverse ETL - Synchronizes processed data from cloud warehouses back into operational marketing and analytics tools.
  • Marketing Analytics - Tracks marketing campaign effectiveness by extracting UTM parameters from URLs and recording page views.
  • Link Interaction Tracking - Logs clicks on hyperlinks and delays page navigation to ensure analytics data is transmitted.
  • Integration Filtering - Provides the ability to enable or disable specific third-party tool integrations for individual event calls.
  • Fetch Keepalive Deliveries - Utilizes the browser fetch keepalive flag to ensure analytics data delivery during page unloads and redirects.
  • Cross-Subdomain Session Sharing - Maintains consistent user identity across subdomains by storing anonymous IDs on the top-level domain.
  • Identity Aliasing - Combines separate user identities into a single profile to maintain a consistent behavioral history.
  • Request Batching - Groups multiple individual event calls into a single HTTP request to reduce network overhead.
  • Client-Side Persistence - Implements a local storage-based retry queue with exponential backoff to prevent data loss during network outages.
  • Submission Tracking - Binds tracking calls to form submissions and delays redirection until the event is successfully delivered.
  • Async Request Completion - Uses the browser keepalive flag to guarantee analytics data transmission completes during hard page redirects.
  • Persistent Retry Queues - Persists failed network requests in the browser's local storage and attempts redelivery with exponential backoff.
  • UTM Parameter Parsing - Automatically reads marketing campaign data from URL query strings and attaches it to event payloads.
  • HTTP Middleware Pipelines - Implements a middleware pipeline to modify event payloads and add custom headers before API transmission.
4,752 stars·723 forks·JavaScript·MIT·16 views

Star history

Star history chart for segmentio/analytics.jsStar history chart for segmentio/analytics.js

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does segmentio/analytics.js do?

This project is a JavaScript analytics integration library and client-side event collector designed to record user behavior and distribute that data to multiple third-party analytics destinations through a unified interface. It functions as a customer data platform that identifies users, manages traits, and routes event streams to various analytics tools and data warehouses.

What are the main features of segmentio/analytics.js?

The main features of segmentio/analytics.js are: Multi-Destination Data Routing, Multi-Destination Event Routing, Page View Tracking, Behavioral Data Collection, Customer Data Management, Customer Data Platforms, Third-Party Data Connectors, User Identification.

Which projects share features with segmentio/analytics.js?

Projects with overlapping indexed features include: jitsucom/jitsu — Jitsu is an open-source customer data platform designed to orchestrate event data pipelines. It captures, transforms,… react-ga/react-ga — react-ga is a Google Analytics React wrapper and client that provides a programmatic interface for integrating web… rudderlabs/rudder-server — Rudder Server is a customer data platform and event routing pipeline designed to collect, transform, and route… snowplow/snowplow — Snowplow is a behavioral event data pipeline and customer data infrastructure designed to capture user interactions… rrweb-io/rrweb — rrweb is a DOM session recording library and serialization framework used to record and replay web sessions. It… firebase/firebase-js-sdk — This is a backend-as-a-service SDK that connects web and mobile applications to a suite of cloud services. It provides…

Projects sharing features with Analytics.js

These projects share indexed features with Analytics.js. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • jitsucom/jitsujitsucom avatar

    jitsucom/jitsu

    4,782View on GitHub↗

    Jitsu is an open-source customer data platform designed to orchestrate event data pipelines. It captures, transforms, and routes behavioral data from web and server sources into data warehouses and analytics tools, providing a unified infrastructure for managing event streams. The platform distinguishes itself through its focus on self-hosted, containerized operations that grant users full control over their data security and privacy. It features a robust identity resolution engine that stitches disparate user identifiers into persistent profiles across sessions and devices, alongside program

    TypeScriptbigqueryclickhousedata-collection
    View on GitHub↗4,782
  • react-ga/react-gareact-ga avatar

    react-ga/react-ga

    5,099View on GitHub↗

    react-ga is a Google Analytics React wrapper and client that provides a programmatic interface for integrating web analytics into React applications. It serves as a tool for recording user interactions, virtual page views, and custom dimensions to measure engagement within web applications. The project features a wrapper-based API that delegates high-level functions to the Google Analytics API. It includes an environment-based logic branching system with a test mode for inspecting analytics calls and verifying data transmission without affecting production servers. The library covers a broad

    JavaScript
    View on GitHub↗5,099
  • rudderlabs/rudder-serverrudderlabs avatar

    rudderlabs/rudder-server

    4,437View on GitHub↗

    Rudder Server is a customer data platform and event routing pipeline designed to collect, transform, and route customer event data from various sources to data warehouses and business tools. It functions as a customer identity resolver, linking identifiers from multiple sources to build a unified identity graph and comprehensive behavioral customer profiles. The system differentiates itself through reverse ETL capabilities, which push processed customer segments and audiences from data warehouses back into operational third-party applications. It also provides a containerized data plane for K

    Gobigquerycdpcustomer-data
    View on GitHub↗4,437
  • snowplow/snowplowsnowplow avatar

    snowplow/snowplow

    7,012View on GitHub↗

    Snowplow is a behavioral event data pipeline and customer data infrastructure designed to capture user interactions and transform them into structured events for real-time analysis and long-term storage. It functions as a customer data platform that gathers user signals and enriches them with metadata to create a unified view of customer behavior. The system operates as an event schema validation engine to enforce strict data contracts on incoming streams, preventing data corruption. It further serves as a real-time event router and an event-driven automation platform, triggering proactive bu

    Scala
    View on GitHub↗7,012
  • Compare all 30 related projects→