
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
cloudinary-video-analytics
Advanced tools
The Cloudinary Video Analytics package allows you to track analytics for your Cloudinary videos using video players other than the Cloudinary Video Player. The library targets the HTML5 video tag and is designed to work with any video player that use this
The Cloudinary Video Analytics package allows you to track analytics for your Cloudinary videos using video players other than the Cloudinary Video Player. The library targets the HTML5 video tag and is designed to work with any video player that use this tag. For more information view the documentation.
1. Install the package:
npm i cloudinary-video-analytics
2. Import the library:
import { connectCloudinaryAnalytics } from 'cloudinary-video-analytics';
3. Connect the analytics::
Connect the analytics by calling the connectCloudinaryAnalytics
method and provide the video element as a parameter. For example, if your video element has the id ‘video-player’:
const videoElement = document.getElementById('video-player');
const cloudinaryAnalytics = connectCloudinaryAnalytics(videoElement);
4. Start tracking:
Start tracking analytics for any Cloudinary video by calling the startAutoTracking
method:
cloudinaryAnalytics.startAutoTracking();
Alternatively, to track each video manually, call the startManualTracking
method, providing your Cloudinary cloud name and the public id of the video you want to manually track:
cloudinaryAnalytics.startManualTracking({
cloudName: 'demo',
publicId: 'cld-sample',
})
Auto and manual tracking cannot be used together for the same video element. Manual tracking should only be used in cases where you need to track certain videos, you want to track a video tag element which is dynamic, or you have custom domains which require providing cloudName
and publicId
.
Native HTML Video Tag - Auto tracking
Native HTML Video Tag - Manual tracking
FAQs
The Cloudinary Video Analytics package allows you to track analytics for your Cloudinary videos using video players other than the Cloudinary Video Player. The library targets the HTML5 video tag and is designed to work with any video player that use this
The npm package cloudinary-video-analytics receives a total of 5,834 weekly downloads. As such, cloudinary-video-analytics popularity was classified as popular.
We found that cloudinary-video-analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.