Core Web Vitals Monitor for Magento 2
Collect browser LCP, layout-shift and interaction-timing observations, then optionally send reports to GA4 or your endpoint. The interaction calculation has limits compared with Google INP reporting.
- Free
- Themes listed: Hyvä + Luma
composer require mage2kishan/module-corewebvitals
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedHyvä + Luma
- PHP versions listed8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
Browser metric collection
Observe supported browser paint, layout-shift and interaction entries.
-
Optional report delivery
Send collected values through existing gtag or a configured beacon endpoint.
-
Developer inspection
Use debug output and metric DOM events to inspect collection.
-
Explicit measurement limits
Legacy FID and worst-event interaction timing are distinct from Google field aggregation.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-corewebvitals $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-corewebvitals |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
Overview
Panth Core Web Vitals Monitor collects performance observations in visitors' browsers. Configure reporting to your analytics setup or an endpoint you provide, then inspect the collected values to support investigation. Collection does not itself repair the causes of slow rendering or interactions.
What you get
- PerformanceObserver-based collection where the browser supports the relevant entry types.
- Optional GA4 events through an existing gtag function and JSON beacon delivery.
- Debug console output, a metrics object and metric DOM events.
- Configurable resource hints and response timing headers.
Magento 2 Core Web Vitals
This page describes published mage2kishan/module-corewebvitals 1.0.14. Current Core Web Vitals are LCP, INP and CLS. This collector also retains legacy FID. Its value labelled INP is the highest observed EventTiming duration with an interaction ID, rather than the full Google INP method or a CrUX aggregate.
Features
The package is a browser collector with optional outbound reporting. It does not provide a built-in metrics database, hourly aggregator or Admin performance dashboard. You supply the receiving analytics or reporting system and decide how to group and interpret the data.
Usage
Enable the collector on staging, inspect the debug observations and verify the receiving system before turning on production reporting. Reports are flushed on page-hidden/pagehide events. The beacon payload includes the page path and query string, so review those values and the receiving system's data handling. For measurement-led troubleshooting, read the Core Web Vitals guide.
Documentation
Use the pinned release README alongside the owning helper, template and plugin code. Later main-branch documentation can differ from this release.
Changelog
Read the package release notes before changing versions and compare them with the Composer version and source reference. Check dependency and configuration changes before upgrading.
Compatibility
The 1.0.14 manifest declares PHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0 and the Magento component requirements in the release source. These dependency declarations and upstream theme statements are not a tested edition/version/theme matrix. The README table partly cites this product page, so it is not independent compatibility evidence. Match your platform to Adobe's version-specific system requirements and test your actual combination.
Requirements
Composer requires mage2kishan/module-core:^1.0 and the Magento components listed in this release's manifest. Review the declared PHP extensions and the relevant frontend integrations before installation. A successful dependency resolution does not replace functional testing.
Installation
Choose the package version you intend to deploy and install it on a staging copy first. The commands below identify the module; compile and static asset steps depend on your deployment mode. Follow Adobe's extension workflow and your project release process.
composer require mage2kishan/module-corewebvitals
bin/magento module:enable Panth_Core Panth_CoreWebVitals
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento module:status Panth_CoreWebVitals
Configuration
Select the intended default, website or store view scope, then review the relevant controls below. Change one capability at a time and compare the generated output or request results with the original behaviour.
General Settings
The master switch defaults to No. Debug mode defaults to No, while Send Metrics to Analytics defaults to Yes once the module is enabled. The GA4 Measurement ID and custom beacon endpoint are blank by default. Setting a measurement ID does not install gtag; the page must already provide it.
LCP (Largest Contentful Paint) Monitoring
The LCP observer is enabled in the supplied configuration and records the latest relevant paint entry until the script stops updates after a click or keydown. Browser lifecycle, visibility and API support affect observations. Treat these values as inputs to diagnosis rather than a PageSpeed Insights score.
FID / INP (Interaction Responsiveness) Monitoring
The shared switch enables first-input and event observers. FID measures the legacy first-input delay. The INP-labelled value tracks the worst observed event duration; it does not implement Google's interaction grouping and outlier handling. Read Google's INP definition before comparing this output with other tools.
CLS (Cumulative Layout Shift) Monitoring
The script excludes shifts with recent user input and tracks the largest observed session window using one-second gaps and a five-second span. Collection still depends on the page lifecycle and browser entries. It does not remove layout shifts or establish a field percentile by itself.
Resource Hints
You can configure DNS-prefetch, preconnect and prefetch entries. The resource-hint block emits the configured links, and the response plugin can add preconnect and Server-Timing headers. Review the domains and final response so unnecessary hints do not compete with important resources.
Uninstallation
Review dependants and capture rollback data before disabling or removing the package. Removing code does not by itself establish that settings, stored logs or generated/cache data have been removed. Follow the exact release notes and a reviewed removal plan.
bin/magento module:disable Panth_CoreWebVitals
composer remove mage2kishan/module-corewebvitals
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
License
This published release declares MIT and includes the MIT notice. Keep that notice when redistributing the software; see the release licence. This statement does not apply current terms to older releases or promise future updates, support or performance results.
Developer Notes
The module is Panth_CoreWebVitals. The helper builds the browser configuration, the frontend template creates observers and dispatches coreWebVitals:* events, and optional reporting calls existing gtag or navigator.sendBeacon. Browser events and values require your own aggregation; no field percentile or CrUX-equivalence claim follows from collecting them.
| Module Category | Performance |
|---|---|
| Best For | Mid-Market |
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.