You are viewing an older version of the Bugsnag documentation (4.x).
View the latest version (5.x) →
Template Guides
Available Variables
The following methods are available to call in your Twig templates:
craft.bugsnag.metadata(data)
Set metadata for exceptions.
craft.bugsnag.getBrowserConfig(asJson)
Return the config for browser logging.
craft.bugsnag.handleException(exception)
Send an exception to Bugsnag.
Last updated: May 2, 2026, 3:22:55 PM