Skip to content

IndexNow for WooCommerce

Easy

WooCommerce runs on WordPress, so the key file goes in the WordPress root — and product changes are exactly what IndexNow is for.

Because WooCommerce is WordPress, installation is identical: the file goes in the folder containing wp-config.php. What differs is the value — a shop's prices and stock change constantly, and those are the changes worth telling search engines about.

Step by step

  1. 1 Connect over FTP, SFTP, or your host's File Manager.
  2. 2 Open the folder containing wp-config.php — usually public_html or httpdocs.
  3. 3 Upload a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.txt there, not into wp-content or a theme folder.
  4. 4 Confirm https://yourdomain.com/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.txt shows only the key.
  5. 5 Click Verify, then add the product hook below if you want instant submission on price and stock changes.

Optional: ping us the moment a product changes

// Fires when a product's price, stock or content is saved.
add_action('woocommerce_update_product', function ($product_id) {
    wp_remote_post('https://index-now.com/api/v1/ping', [
        'headers' => [
            'Authorization' => 'Bearer YOUR_DOMAIN_TOKEN',
            'Content-Type'  => 'application/json',
        ],
        'body'     => wp_json_encode(['url' => get_permalink($product_id)]),
        'blocking' => false,
    ]);
});

The key shown is an example. Yours is generated when you add the domain.

Watch out for

  • Do not fire on every stock decrement. Submit when the price, availability state, title or images change — not when stock moves from 47 to 46.
  • Keep out-of-stock product pages live and marked OutOfStock rather than deleting them; you lose the accumulated ranking otherwise.

Then what?

Hosting the key file proves you own the domain — it doesn't submit anything on its own. You still need something watching for changes and calling the IndexNow API with the right URLs at the right time. You can build that yourself, or let us run it for $12 a year.

Set up automatic submission

Stop waiting to be found

Set it up once. We keep telling the search engines about every change you make, for $12 a year.