[object Object] Icon

Learn how to create, start, manage and modify Encodings

[object Object] Icon

Learn how to create, start, manage and modify Players

[object Object] Icon

Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Wed Jun 24 2020

Overriding bundled Bitmovin Player v8 Analytics collector

If you are running a pre-bundled release of Bitmovin Player v8 it already includes Bitmovin Analytics out of the box.

This article explains how to override the bundled version of the Bitmovin Analytics collector. This is useful if you want to update the collector version but don't want to update your player.

Usage with html script tag

Include a specific version of Bitmovin Analytics with the script tag in your html file

1<script type="text/javascript" src="https://cdn.bitmovin.com/analytics/web/2.15.2/bitmovinanalytics.min.js"></script>

Register the analytics module before instantiating the player. This overrides the bundled Bitmovin Analytics collector.

2var player = new bitmovin.player.Player(container, configWithAnalytics);

Usage with NPM distributions

When embedding the Bitmovin Player via NPM distributions, it requires manual loading of the module

1import {Player} from 'bitmovin-player/modules/bitmovinplayer-core';
2import {PlayerModule as AnalyticsModule} from 'bitmovin-analytics';
5var player = new Player(container, configWithAnalytics);

Give us feedback