Magento/Adobe Commerce

The Raygun for Magento/Adobe Commerce module allows you to easily set up Crash Reporting and Real User Monitoring on Magento/Adobe Commerce sites without having to write a single line of code. Compatible with your full tech stack across both desktop and mobile.


  • Magento 2.4.x
  • PHP 5.6.x, 7.x, 8.x
  • Composer 2

This module utilizes the lower-level Raygun provider Raygun4PHP is used to track server-side errors and exceptions.

Further documentation on the JavaScript component can be found in Github repo.


Update your composer.json to include the following module -

composer require "magenizr/magento2-raygun":"^1.1.0" --no-update

Run the following command to update your composer.lock file -

 composer update magenizr/magento2-raygun --no-install

Which should output the following -

Updating dependencies
Lock file operations: 1 install, 1 update, 0 removals
  - Locking magenizr/magento2-raygun (1.1.0)

Run composer install to install the package which should output the following -

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 update, 0 removals
  - Installing magenizr/magento2-raygun (1.1.0): Extracting archive

Enable the module for your site by running the following command to start tracking your errors -

php bin/magento module:enable Magenizr_Raygun

Add your API key via the Magenizr dashboard by going into your Stores > Configuration > Magenizr > Raygun. Add it to the API Key field from there. -

API Key | paste_your_api_key_here

Crash Reporting Installtion


Once the module is enabled, Raygun features are available to enable via the Magenizr dashboard.

  1. Simply go to Stores > Configuration > Magenizr > Raygun.
  2. Paste your Raygun API key
  3. Enable PHP Crash Reporting and/or Real User Monitoring
  4. Clear cache
  5. The next PHP exception, error or session in the frontend will get pushed to Raygun immediately

Crash Reporting Dashboard


Venia is a Magento Progressive Web App storefront created and powered by PWA Studio tools and libraries.

Please refer to our Node.js documentation on setting up for a Venia themed PWA.


Customers is avaliable to view! In order to track this, simply enable the 'Track customer' option in the Magenizr dashboard. You can also enable tracking anonymous user was well.


If, for some reason, you would liek to push error payloads over HTTP (such as for allowing IE8 users to send JS errors), this is possible to recieve. Simply enable the 'Allow Insecure Submissions' option in the Magenizr dashboard.


You can disable Raygun for certain domains such as .local or .dev to prevent errors from being sent to Raygun via the defined hosts. Simply enable the 'Exclude Hostnames' option in the Magenizr dashboard.


The provider is open source and available at the Magenizr_Raygun repository.