-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Incorporate JS Bugsnag Library #21
Comments
Hi @mikebronner, sorry it's taken so long to get to this. This is absolutely something that we can look into doing. I'll note back any progress here. |
Thanks, I'm still very much interested in this :) |
Me too, any updates? |
You can manually add the JS library to your site by following our JS integration guide. We are still considering building this into the Wordpress Plugin. We will provide updates when that happens but we do not have an ETA as yet. |
+1 would be amazing to get that into the plugin |
Hi @masteradhoc - this is still on our product roadmap, but I don't currently have an ETA for when we might work on this. We'll make sure we keep this thread updated with any progress 👍 |
@luke-belton Any update half a year later? :) |
Hi @masteradhoc, unfortunately we don't have any updates to share. This is still on the backlog and we haven't had a chance to work on it yet. |
Can we get movement on this it really should not be that difficult, here is code: function bugsnag_enqueue_js() {
wp_enqueue_script( 'bugsnag', 'https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js', array(), '7', true );
wp_enqueue_script( 'bugsnag-performance', 'https://d2wy8f7a9ursnm.cloudfront.net/v2.1.0/bugsnag-performance.min.js', array('bugsnag'), '2.1.0', true ); // Performance JS File, Optional.
wp_add_inline_script( 'bugsnag', 'Bugsnag.start({
apiKey: \'API-KEY-GOES-HERE\'
})' );
}
add_action( 'wp_enqueue_scripts', 'bugsnag_enqueue_js' );
add_action( 'admin_enqueue_scripts', 'bugsnag_enqueue_js' ); // Load on Admin Pages, Should be an option. You can use |
Hi @bhubbard We appreciate your patience here. This is something that has been discussed internally, but a real integration would require a way to pass config between both of the notifiers, and this isn't currently something we're looking to directly support in the near future. If you're keen to incorporate the current solution you have, then please feel free to make a new plugin that only pulls in |
Would love to see this plugin also inject the JS error handling, with a separate bugsnag API key for the JS bugsnag project (would of course require setup of two bugsnag projects).
This would dramatically ease the implementation of JS monitoring on Wordpress websites.
Thoughts?
The text was updated successfully, but these errors were encountered: