Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wp-digital/wp-bugsnag-fe
https://github.com/wp-digital/wp-bugsnag-fe
bugsnag frontend wordpress wordpress-plugin wp-plugin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wp-digital/wp-bugsnag-fe
- Owner: wp-digital
- Created: 2022-07-29T08:54:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T11:29:29.000Z (about 2 years ago)
- Last Synced: 2024-11-21T09:39:15.083Z (about 1 month ago)
- Topics: bugsnag, frontend, wordpress, wordpress-plugin, wp-plugin
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bugsnag Frontend Error Monitoring
### Description
Automatically detects issues from browser on site and notifies by email, chat or ticket system via Bugsnag.
### Install
- Preferable way is to use [Composer](https://getcomposer.org/):
composer require innocode-digital/wp-bugsnag-fe
By default, it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins).
It's possible to control with `extra.installer-paths` in `composer.json`.- Alternate way is to clone this repo to `wp-content/mu-plugins/` or `wp-content/plugins/`:
cd wp-content/plugins/
git clone [email protected]:innocode-digital/wp-bugsnag-fe.git
cd wp-bugsnag-fe/
composer install
If plugin was installed as regular plugin then activate **AWS Lambda Prerender** from Plugins page
or [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-bugsnag-fe`.### Configuration
Add the following constants to `wp-config.php`:
````
define( 'BUGSNAG_FE_API_KEY', '' );
// Optionally, it's possible to change Bugsnag domain and/or version of library via `wp-config.php`:
define( 'BUGSNAG_FE_DOMAIN', '' );
define( 'BUGSNAG_FE_VERSION', 'v6' );
````### Usage
By default, library will be loaded with higher priority than `wp_enqueue_scripts` hook with attribute `defer` but
it's possible to control through `innocode_bugsnag_fe_deferred` hook:````
add_action( 'innocode_bugsnag_fe_deferred', '__return_false' );
````