Files
videojs-release[bot]andgithub-actions[bot] a5fdd3cab5 chore: release main (#9758)
Co-authored-by: videojs-release[bot] <324600730+videojs-release[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-16 14:27:12 -08:00
..
2026-11-16 14:27:12 -08:00
2026-11-16 14:27:12 -08:00

@videojs/google-analytics

Google Analytics 4 (GA4) telemetry integration for Video.js. It monitors media playback and user interactions, automatically dispatching standard GA4 Enhanced Measurement video events and Video.js interaction events to window.dataLayer (or window.gtag). It is an extension: it adds behavior to whichever media the player is playing.

pnpm add @videojs/html @videojs/google-analytics
# or
pnpm add @videojs/react @videojs/google-analytics

Usage

import '@videojs/html/extensions/google-analytics';
import { GoogleAnalytics } from '@videojs/react/extensions/google-analytics';

License

Apache-2.0