androlax2/raygun4wordpress

There is no license information available for the latest version (v1.11.5) of this package.

Installs: 2 147

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 8

Type:wordpress-plugin

v1.11.5 2021-11-18 18:10 UTC

This package is auto-updated.

Last update: 2024-04-05 21:33:01 UTC


README

Raygun provider plugin for Wordpress

Wordpress plugin providing the easy integration of Raygun to Wordpress websites. Crash Reporting allows developers to easily track errors, exceptions and crashes automatically while Real User Monitoring allows you to identify issues, measure trends in application performance, and improve your customers’ experience.

This provider uses the lower-level Raygun4PHP provider for server-side crash reporting and Raygun4JS for both client-side crash reporting and real user monitoring.

Multisite support: This plugin supports Multisite installations, but a specific installation procedure should be followed. Read the instructions below for more information.

Installation

Ensure that your server is running

  • PHP 5.3.3 or newer
  • curl library enabled

Manually with Git

Clone this repository into your Wordpress installation's /plugins folder - e.g. /wordpress/wp-content/plugins. Use the --recursive flag to also pull down the Raygun4PHP and Raygun4JS dependencies:

git clone --recursive https://github.com/MindscapeHQ/raygun4wordpress.git

From Wordpress Plugin Directory

Add it from the official repository using your admin panel - the plugin is available on wordpress.org/plugins/raygun4wp/.

Usage

  1. Navigate to your Wordpress admin panel, click on Plugins, and then Activate Raygun4WP
  2. Go to the Raygun4WP settings panel either by the sidebar or admin notification
  3. Copy your application's API key from the Raygun dashboard and place it in the API key field
  4. Enable Error Tracking (both server-side and client-side), Real User Monitoring and any other options
  5. Save your changes
  6. Done!

Real User Monitoring

As of 1.8 of Raygun4WP plugin you can enable real user monitoring.

This feature can be enabled via the Settings page under Real User Monitoring.

User information will be sent along if you have the Customers feature enabled.

Client-side error tracking

Since 1.4 of the Raygun4WP plugin you can enable client-side error monitoring.

This feature automatically tracks JavaScript errors that occur in your user's browsers when they are loaded.

This setting can be activated via the Settings page.

Customers

This feature can be enabled via the Settings page.

Enabling this feature will send through the currently logged in user's email address, first name and last name with each message to Raygun. This applies to both Crash Reporting and RUM payloads.

If a user is not logged in, no user data will be sent and a random ID will be assigned to the user.

The user's information will then be available to you when viewing crash reports and user sessions. If the user has an associated Gravatar with that address, you will see their picture.

If this feature is not enabled, a random ID will be assigned to each user.

Tagging errors

Since 1.8 both client-side and server-side errors can be tagged. Tags are custom test allowing you to easily identify errors.

JavaScript and PHP errors can be tagged independently through a comma-delimited list in the field on the settings page.

For example: Error, JavaScript would add two tags. The first being Error second one being JavaScript

Ignored domains

You can enter a comma-delimited list in the field on the settings page to prevent certain domains from sending errors and from being tracked with real user monitoring.

Async sending

Introduced in 1.1.3, this provider will now send asynchronously on *nix servers (async sockets) resulting in a massive speedup - POSTing to Raygun now takes ~56ms including SSL handshakes. This behaviour can be disabled in code if desired to fall back to blocking socket sends. Async sending is also unavailable on Windows due to a bug in PHP 5.3, and as a result it uses cURL processes. This can be disabled if your server is running a newer environment; please create an issue if you'd like help with this.

As of 1.9.0, you can now toggle asynchronous sending through the Raygun settings page in the admin dashboard.

Changelog

  • 1.9.3: Updated User Tracking to Customers.
  • 1.9.2: Update Pulse to Real User Monitoring (RUM)
  • 1.9.1: Don't set user cookie when user tracking is disabled.
  • 1.9.0: Add async sending option to dashboard; Bump Raygun4JS dependency to v2.8.5; Bump Raygun4PHP dependency to v1.8.2
  • 1.8.3: Fix XSS vulnerability in settings; Replace the iframe with a link to the Raygun dashboard
  • 1.8.2: Bump Raygun4JS version to v2.6.2
  • 1.8.1: XSS bug fix
  • 1.8.0: Bump Raygun4JS dependency to v2.4.0; Bump Raygun4PHP dependency to v1.7.0; Pulse support added; Raygun4JS also includes the unique user tracking feature; Restructured the settings screen; JavaScript error tagging option added; Fixed an issue where the Send Test Error page wouldn't display results; Various content and style updates; Updated notifications; Raygun4JS tracks the version Wordpress being used; Unique user tracking also tracks the users first & last names
  • 1.7.3: Fixed issue with WP 4.5.2 plugin api
  • 1.7.2: Fixed redundant cURL check when running in socket mode
  • 1.7.1: Fix issue with tags not being provided for caught exceptions
  • 1.7.0: Bump Raygun4JS dependency to v1.18.4
  • 1.6.0: Bump Raygun4php dependency to v1.6.1
  • 1.5.2: Ignored domains are now obeyed for JS errors; fix admin menu appearing for users without that role
  • 1.5.1: Fix settings change errors
  • 1.5.0: Added flag to enable multisite support; bump RG4PHP and RG4JS dependencies
  • 1.4.1: Admin warning notice fix
  • 1.4.0: Added auto client-side JavaScript error tracking
  • 1.3.0: Ignored Domains setting added; bump RG4PHP to v1.3.5
  • 1.2.1: Updated admin message
  • 1.2: Now requires PHP 5.3.3 or newer; default to using socket sending method; bump Raygun4PHP to 1.3.3
  • 1.1.4: Bump Raygun4PHP to latest version 1.2.4
  • 1.1.3: Bump Raygun4PHP to async version
  • 1.1.1: WordPress version tracking enabled; updated Raygun4PHP. There were two bugs in 1.1 with nested request data and user tracking, updating is recommended.
  • 1.1: Added Unique User tracking support; updated repo to use latest Raygun4PHP v1.1
  • 1.0.3: Added button to test setup on config page; added status indicator, improved handling when API key missing or invalid; fixed a major bug where the provider would attempt to send errors, even if the status was 'disabled', cURL was missing, or an invalid API key was provided
  • 1.0.1: Added 404 error handling; enabled tag support; misc UX improvements