Home >Web Front-end >JS Tutorial >Looking for an easy way to request Google Search Console to index your website pages?

Looking for an easy way to request Google Search Console to index your website pages?

Susan Sarandon
Susan SarandonOriginal
2024-12-27 11:47:09136browse

Looking for an easy way to request Google Search Console to index your website pages?

Looking for an easy way to request Google Search Console to index your website pages?

Here is how a handle the request to index all the 764 pages from https://must-know-resources-for-programmers.giessen.dev/.

  1. Local project and folder
    1. pnpm init
    2. pnpm add google-indexing-script
    3. Update the package.json scripts "seo": "node index.js"
    4. touch index.js
    5. add the following to the index.js file
  1. Follow the steps in the https://github.com/goenning/google-indexing-script?tab=readme-ov-file#preparation
  2. Download the credentials JSON https://github.com/goenning/google-indexing-script/issues/2
  3. Rename the download JSON and move to the folder where the index.js is located at
  4. Go to Google Search Console
    1. Select the Website to index
    2. Go to settings
    3. Users and permissions
    4. Add user
    5. Add the email from the .iam.gserviceaccount.com that you created in the step 6 preparations
    6. In the permissions, Select Owner
  5. Now you can run the pnpm seo in the terminal and that should make the request to index all the pages that are in the sitemap of your website

The above is the detailed content of Looking for an easy way to request Google Search Console to index your website pages?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn