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
googleanalytics avatar

googleanalytics/autotrackArchived

0
View on GitHub↗
4,913 stars·547 forks·JavaScript·10 views

Autotrack

Autotrack is a JavaScript library for Google Analytics that automatically captures user interactions and page engagement. It provides a system for declarative analytics implementation, allowing web events to be tracked via HTML attributes to avoid writing custom JavaScript for every interaction.

The project includes an analytics bundle generator to create minimized JavaScript files containing only the specific tracking plugins required for a project. It also functions as a single page application tracker that monitors changes to the browser history to record virtual pageviews.

The library covers a broad range of engagement measurement capabilities, including tracking scroll depth, element visibility, and media query states. It also provides tools for web analytics data normalization, such as filtering URL parameters and standardizing paths to prevent duplicate entries.

Features

  • Automatic Event Tracking - Enables Google Analytics to track user interactions and pageviews automatically using declarative HTML attributes.
  • Virtual Page Tracking - Monitors navigation changes in single page applications via the History API to record virtual pageviews.
  • Engagement Analytics - Measures behavioral engagement metrics including scroll depth and element visibility.
  • Event Analytics - Automatically captures user interactions and page engagement as event-based analytics for Google Analytics.
  • Declarative - Implements a system for tracking user actions via HTML attributes to avoid custom JavaScript for every event.
  • Single Page Application Tracking - A tool that monitors History API URL changes to record virtual pageviews in single page applications.
  • Content Engagement Interactions - Measures user engagement through scroll depth tracking and element visibility.
  • History API Navigators - Uses the browser's History API to trigger virtual pageviews and manage URL navigation in single page applications.
  • Declarative JavaScript Execution - Implements a system for tracking web events via HTML attributes to avoid writing custom JavaScript.
  • Data Attribute Event Mapping - Links DOM events to analytics metadata using HTML data attributes via event delegation.
  • Impression Tracking - Sends events when specified page elements enter the browser viewport to record when users see specific content.
  • Generic Interaction Capture - Captures common web behaviors such as outbound link clicks, form submissions, and social widget interactions.
  • Scroll Depth Tracking - Records the maximum distance a user scrolls down a page to measure content engagement as a percentage of height.
  • Traffic Monitoring - Tracks website visitor activity and engagement, specifically monitoring outbound links and forms to analyze traffic leakage.
  • URL Parameter Filtering - Implements whitelisting and redirection of query parameters to custom dimensions to maintain search data.
  • URL Path Normalization - Provides capabilities to strip dynamic patterns and user IDs from page paths for cleaner analytics data.
  • Web Analytics Data Normalization - Cleans and standardizes reported URLs and query parameters to ensure consistent reporting.
  • Custom Bundle Generation - Generates minimized JavaScript bundles containing only the specific tracking plugins required for a project.
  • Custom Bundle Builders - Generates a minimized JavaScript bundle containing only the specific tracking plugins required for a project.
  • Page Visibility APIs - Utilizes the Page Visibility API to detect whether a web page is currently visible to the user for accurate engagement measurement.
  • Event Listener Delegation - Attaches event listeners to the document root to capture outbound clicks and form submissions via event bubbling.
  • Intersection Observer Implementations - Uses the Intersection Observer API to detect when specific elements enter the viewport for impression tracking.
  • Modular Plugin Architectures - Employs a modular plugin design that allows specific tracking modules to be selectively bundled to minimize bundle size.
  • Path Normalization - Automatically adjusts and cleans URL paths to ensure consistent formatting and prevent duplicate entries in analytics reports.
  • URL Normalization Utilities - Provides utilities for standardizing request paths and stripping query strings to ensure consistent analytics data.

Star history

Star history chart for googleanalytics/autotrackStar history chart for googleanalytics/autotrack

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

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

Frequently asked questions

What does googleanalytics/autotrack do?

Autotrack is a JavaScript library for Google Analytics that automatically captures user interactions and page engagement. It provides a system for declarative analytics implementation, allowing web events to be tracked via HTML attributes to avoid writing custom JavaScript for every interaction.

What are the main features of googleanalytics/autotrack?

The main features of googleanalytics/autotrack are: Automatic Event Tracking, Virtual Page Tracking, Engagement Analytics, Event Analytics, Declarative, Single Page Application Tracking, Content Engagement Interactions, History API Navigators.

What are some open-source alternatives to googleanalytics/autotrack?

Open-source alternatives to googleanalytics/autotrack include: facebook/facebook-ios-sdk — This software is a mobile app analytics toolkit, a social graph API client, and a social sharing library for iOS. Its… swup/swup — Swup is a page transition library and AJAX page loader designed to create seamless, animated transitions between pages… julienschmidt/httprouter — httprouter is a high-performance HTTP request router for Go that maps incoming network requests to specific handler… juliencrn/usehooks-ts — usehooks-ts is a comprehensive collection of reusable TypeScript-based hooks designed for managing state, DOM events,… salvo-rs/salvo — Salvo is a comprehensive Rust web framework for building asynchronous HTTP servers and web applications. It features a… hotwired/stimulus — Stimulus is a JavaScript behavior framework and client-side logic layer used to add interactive behavior to…

Open-source alternatives to Autotrack

Similar open-source projects, ranked by how many features they share with Autotrack.
  • facebook/facebook-ios-sdkfacebook avatar

    facebook/facebook-ios-sdk

    8,067View on GitHub↗

    This software is a mobile app analytics toolkit, a social graph API client, and a social sharing library for iOS. Its primary purpose is to enable the tracking of application events and ad conversions, the retrieval of user profiles and social connections from the Facebook Graph API, and the publication of content to social feeds and messaging services. The toolkit provides specialized capabilities for social login integration and identity management, including the handling of access tokens and session refreshing. It features a dedicated system for deep link navigation to route users to speci

    Swift
    View on GitHub↗8,067
  • swup/swupswup avatar

    swup/swup

    5,191View on GitHub↗

    Swup is a page transition library and AJAX page loader designed to create seamless, animated transitions between pages on server-rendered websites. It functions as a DOM content orchestrator and browser history manager, intercepting navigation to replace page content dynamically and simulate a single-page application experience. The project differentiates itself through a hook-based lifecycle system and a plugin architecture that allows for the injection of custom logic and animation effects. It supports advanced visual methods including DOM content morphing, parallel-DOM rendering for overla

    TypeScriptanimationjavascriptpage-transitions
    View on GitHub↗5,191
  • julienschmidt/httprouterjulienschmidt avatar

    julienschmidt/httprouter

    17,121View on GitHub↗

    httprouter is a high-performance HTTP request router for Go that maps incoming network requests to specific handler functions using a radix tree. It functions as a request dispatcher and path parameter parser, organizing URL paths in a tree structure to ensure efficient lookups. The router specializes in capturing dynamic segments and catch-all wildcards from URL paths to pass directly into request handlers. It implements method-specific routing and automatically manages responses for unsupported HTTP methods. The library covers broader capabilities including request normalization through tr

    Gogogolanghttp
    View on GitHub↗17,121
  • juliencrn/usehooks-tsjuliencrn avatar

    juliencrn/usehooks-ts

    7,834View on GitHub↗

    usehooks-ts is a comprehensive collection of reusable TypeScript-based hooks designed for managing state, DOM events, and browser API interactions within React applications. It provides a typed library of functions to handle common frontend patterns and side effects. The project distinguishes itself by offering specialized hooks for browser integration, including tools for interacting with the system clipboard, managing local and session storage persistence, and loading external scripts. It also includes utilities for responsive UI development, such as tracking media queries, window dimension

    TypeScripthookhooksmdx
    View on GitHub↗7,834
  • See all 30 alternatives to Autotrack→