# angulartics/angulartics2

Vendor-agnostic analytics for Angular2 applications.

Repository: https://github.com/angulartics/angulartics2
Canonical: https://ross.abutalabs.com/products/angulartics2
Language: TypeScript
License: MIT
License Family: permissive
Topics: angular, angular2, google-analytics, angulartics2, analytics, piwik, baidu-analytics, google-tag-manager, mixpanel, kissmetrics, facebook-pixel, application-insights, angulartics, segmentio, ngx, angular4, angular5, hack, hacktoberfest
Last push: 2026-01-13T11:52:49+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 62, release rhythm 8, longevity 100
- inputs: {"age_days": 3899, "days_push": 232, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1008, forks 186 (observed 2026-08-28T04:03:12.693722+00:00)

## What it is
Angulartics2 is a vendor-agnostic analytics library for Angular applications that provides a unified API for tracking pageviews and events across many analytics providers. It integrates with the Angular router for automatic page tracking and supports providers like Google Analytics, Google Tag Manager, Matomo, Mixpanel, Segment, and Amplitude.

## Use cases
- add web analytics to an Angular app
- track pageviews automatically on route changes in Angular
- send custom event tracking from Angular components and templates
- switch analytics providers without rewriting tracking code
- integrate Google Tag Manager or Google Analytics with Angular
- exclude certain routes from analytics tracking
- track events in Angular templates with directives

## When to choose
- you have an Angular application and want analytics with minimal vendor lock-in
- you need automatic pageview tracking tied to the Angular router
- you want one consistent API across multiple analytics providers

## When to avoid
- your project is not built with Angular
- you need analytics for a React, Vue, or vanilla JS app
- you need a provider that angulartics2 does not support and cannot add via its plugin interface

## Facets
- artifact type: library
- maturity: maintenance
- function: analytics
- domain: web-development, frontend, analytics
- platform: -
- tags: angular, google-analytics, vendor-agnostic, page-tracking, event-tracking, npm-package, web-server, nodejs, typescript

## Member repositories
- angulartics/angulartics2 (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:12.693722+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:12:08.051229+00:00, confidence not recorded.
  - readme: https://github.com/angulartics/angulartics2 (fetched 2026-08-28T04:03:12.693722+00:00, sha 3eb2e7d69f2e)
  - registry_npm: https://registry.npmjs.org/angulartics2 (fetched 2026-08-29T13:12:18.993168+00:00, sha f1ba536828cc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
