This integration monitors a website for SEO issues using Google PageSpeed Insights and posts a report to a Telex channel at a scheduled interval.
-
Prerequisites:
- A Google Cloud account with the PageSpeed Insights API enabled.
- An API key for the PageSpeed Insights API.
- A Telex account and a Telex channel.
- Node.js (v16 or higher)
-
Environment Variables: Set the following environment variable:
GOOGLE_API_KEY: Your Google PageSpeed Insights API key.
3 Installations: 1. Clone the repository: ```bash git clone https://github.com/your-username/your-repo.git cd your-repo
2. npm install
-
Hosting the
integration.json:- You can host using any hosting provider of your choice
-
Adding the Integration to Telex:
- In Telex, go to your organization's apps page.
- Click "Add New Integration."
- Enter your root URL/
integration.json. - Follow the prompts to install the integration in a Telex channel.
Once the integration is installed, configure the following settings On Telex or from the backend:
site: The URL of the website to monitor.interval: How often to run the SEO check (using cron syntax). For example,0 * * * *runs the check every hour.
This section provides examples of how the SEO Monitoring integration works with different settings. Test Case 1: Successful SEO Check
-
Settings:
site:https://www.example.cominterval:0 * * * *(Every hour)performanceThreshold:70brokenLinksLimit:5slowPagesLimit:3
-
Expected Output (in Telex Channel): See Screenshot Below
*/1 * * * *
