Diagnose Search Console declines with Scrapeless and MySQL

Compare a query’s falling impressions with regional search interest over the same four weeks and store the evidence for SEO review.

22 stepsMarketing

Free to start, no card required.

How it works

  1. When this happens

    Check the selected SEO investigation

    Schedule

  2. Step 1 · Code

    Select the investigation record

  3. Step 2 · MySQL

    Read the search demand case

  4. Step 3 · Code

    Match the query, country and dates

  5. Step 4

    Check whether work is pending

    Follows the first path that matches

    • Approved or pending investigation

      1. Step 5 · Google Search Console

        Read final query impressions

      2. Step 6 · Code

        Compare two 14-day periods

      3. Step 7 · MySQL

        Save small or unmeasurable declines

      4. Step 8

        Check the observed decline

        Follows the first path that matches

        • Regional comparison is needed

          1. Step 9 · MySQL

            Reserve the paid Trends request

          2. Step 10

            Check who reserved the request

            Follows the first path that matches

            • This run owns the request

              1. Step 11 · Scrapeless

                Request national search interest

              2. Step 12 · Code

                Read the Trends result or task ID

              3. Step 13 · MySQL

                Save the result or pending request

            • Otherwise

              Nothing happens

          3. Step 14 · MySQL

            Find a pending regional request

          4. Step 15 · Code

            Check the saved task reference

          5. Step 16

            Check for an asynchronous result

            Follows the first path that matches

            • A saved request needs polling

              1. Step 17 · Scrapeless

                Read the existing Trends request

              2. Step 18 · Code

                Compare the confirmed interest index

              3. Step 19 · MySQL

                Save the regional evidence

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

      5. Step 20 · MySQL

        Read back the saved diagnostic

      6. Step 21 · Code

        Confirm the final or pending result

    • Otherwise

      Nothing happens

Before you start

Set the investigation ID and grant access to the Search Console property. In MySQL create seo_demand_checks with id (primary key), site_url, query_text, market, end_day (date), state, task_id and report (JSON), then set each approved case to ready using an end date at least four days old. A 25% drop from at least 100 impressions triggers a regional Trends request; review any case left in submitting before retrying.

Accounts to connect

See all 187 in Marketing

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template