The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

748 Modules
496 Ready
245 Need Help
๐Ÿ† Leaderboard
Actively Maintained v1.0.1

RumVision Tracking for Hyva

foundation-commerce/module-rumvision-tracking

Integrates the RumVision real user monitoring (RUM) tracking script into Hyva Theme frontend pages with CSP-compliant inline script injection. Configurable per store view via the admin panel.

46
Downloads
Below average
0
GitHub Stars
1mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
12 warnings
PHPStan Level 8

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.1 on Magento 2.4.8-p4
Mar 22, 2026
v1.0.0 on Magento 2.4.8-p4
Mar 21, 2026
v1.0.0 on Magento 2.4.8-p3
Mar 20, 2026

Share This Module's Status

RumVision Tracking for Hyva Magento compatibility status badge

README

Loaded from GitHub

FoundationCommerce RumVision Tracking For Hyvรค Theme

Integrates the RumVision real user monitoring (RUM) tracking script into all frontend pages of your Hyvรค Theme. The script is configurable via the Magento admin panel and can be enabled/disabled per store view. The inline script is CSP compliant using Hyvรค's HyvaCsp helper.

Installation

composer require foundation-commerce/module-rumvision-tracking

After installation or updates, run:

php bin/magento module:enable FoundationCommerce_RumvisionTracking
php bin/magento setup:upgrade
php bin/magento cache:flush

Configuration

Navigate to: Stores > Configuration > Foundation Commerce > RumVision Tracking

General Settings

  • Enable RumVision Tracking: Turn the tracking script on/off
  • RumVision Site ID: Your RumVision site ID (found in your RumVision dashboard, e.g. RUM-66DC162C53)
  • Domain Name: The domain name passed to the RumVision tracking script (e.g. example.com)

The tracking script will only render on the frontend when the module is enabled and both a site ID and domain name are configured.

How It Works

When enabled, the module injects the RumVision JavaScript tracking snippet before the closing </body> tag on all frontend pages. The script loads asynchronously and does not block page rendering.

The inline script uses Hyvรค's HyvaCsp::registerInlineScript() for Content Security Policy compliance. When full page cache is enabled, a SHA-256 hash of the script is added to the CSP header. When FPC is disabled, a nonce attribute is injected on the script tag instead.

Module Structure

app/code/FoundationCommerce/RumvisionTracking/
โ”œโ”€โ”€ Model/
โ”‚   โ””โ”€โ”€ Config.php              # Configuration accessor
โ”œโ”€โ”€ ViewModel/
โ”‚   โ””โ”€โ”€ TrackingScript.php      # ViewModel for the tracking template
โ”œโ”€โ”€ etc/
โ”‚   โ”œโ”€โ”€ acl.xml                 # Admin ACL resource
โ”‚   โ”œโ”€โ”€ adminhtml/
โ”‚   โ”‚   โ””โ”€โ”€ system.xml          # Admin configuration fields
โ”‚   โ”œโ”€โ”€ config.xml              # Default configuration values
โ”‚   โ””โ”€โ”€ module.xml              # Module declaration
โ”œโ”€โ”€ view/
โ”‚   โ””โ”€โ”€ frontend/
โ”‚       โ”œโ”€โ”€ layout/
โ”‚       โ”‚   โ””โ”€โ”€ default.xml     # Layout injection on all pages
โ”‚       โ””โ”€โ”€ templates/
โ”‚           โ””โ”€โ”€ tracking-script.phtml  # Tracking script template
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ registration.php

Troubleshooting

  • Script not appearing: Verify the module is enabled and both a site ID and domain name are set. Flush cache with php bin/magento cache:flush.
  • CSP errors in browser console: Ensure the Hyvรค theme module is installed and up to date. The HyvaCsp helper handles nonce/hash injection automatically.
  • Script on wrong pages: The script is injected on all frontend pages via default.xml. To restrict it, modify the layout XML.
  • Check module status: php bin/magento module:status FoundationCommerce_RumvisionTracking

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.