# Netlify build plugin
Our Netlify build plugin can run PageWatch audits automatically from pull request previews or production builds.
- Install the plugin using
yarn add netlify-build-plugin-pagewatch
- Update your
netlify.tomlplugins section to reference the plugin:
[[plugins]] package = "netlify-build-plugin-pagewatch"
- Grab your PageWatch Api Key and store it as the
PAGEWATCH_SITE_KEYenvironment variable in your Netlify build settings.
That is it, now a PageWatch audit will be automatically run whenever you create a production build.
# GitHub integration
You can run PageWatch as part of your continuous integration process. On every pull request or deploy you'll be able to test your site and catch any issues before it becomes an issue.
See the GitHub app instructions