Magento/Adobe Commerce
The Raygun for Magento/Adobe Commerce module allows you to easily set up Real User Monitoring and Crash Reporting 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.
System Requirements
- Magento 2.4.x
- PHP 5.6.x, 7.x, 8.x
- Composer 2
Dependencies
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.
Installation
Step 1
Update your composer.json
to include the following module -
composer require "magenizr/magento2-raygun":"^1.1.0" --no-update
Step 2
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)
Step 3
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
Step 4
Enable the module for your site by running the following command to start tracking Real User Monitoring events -
php bin/magento module:enable Magenizr_Raygun
Step 5
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
Usage
Once the module is enabled, Raygun features are available to enable via the Magenizr dashboard.
- Simply go to
Stores
>Configuration
>Magenizr
>Raygun
. - Paste your Raygun API key
- Enable PHP Real User Monitoring and/or Crash Reporting
- Clear cache
- The next PHP exception, error or session in the frontend will get pushed to Raygun immediately
Customers
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.
The provider is open source and available at the Magenizr_Raygun repository.