At DeepCrawl I helped debug thousands of technical SEO issues each year on some of the largest enterprise websites in the world.
I created a Googlebot simulator in Chrome to quickly replicate and debug complex technical SEO issues. I called it the Chromebot technique.
In this guide, I'm going to explain how to make your own Googlebot simulator in Google Chrome to debug complex technical SEO issues.
Jump to the Googlebot Chrome technique.
What is the Chromebot technique?
The Chromebot technique is a simple non-code solution which allows a human to configure Chrome settings so they act like a Googlebot crawler (not rendering).
It can help SEO specialists identify unique crawling and indexing issues on a website.
Why use this technique?
I've used this technique a lot at DeepCrawl when debugging countless client crawling and indexing issues.
It's a fairly simple but effective non-code technique to help technical SEOs think more like a search engine crawler and less like a human.
Many websites can do funny things when Googlebot requests pages.
How do you know Googlebot crawler's settings?
All of the settings are based on the time I spent chatting with engineers, studying the documentation around Googlebot, and updating DeepCrawl's Page Rendering Service documentation.
I've listed the original documents that I've based the settings on:
- Fix Search-related JavaScript problems
- Understand rendering on Google Search
- JavaScript and SEO: The Difference Between Crawling and Indexing
What do you need for this technique?
All you need is Google Chrome Canary and a Virtual Private Network (VPN).
Why simulate Googlebot in Google Chrome?
There are four core benefits to using this technique which I will briefly explain.
Debugging in Google Chrome
I have debugged hundreds of websites in my time at DeepCrawl. Third party web crawling tools are amazing but I've always found that they have limits.
When trying to interpret results from these tools I always turn to Chrome to help understand and debug complex issues.
Google Chrome is still my favourite non-SEO tool to debug issues and when configured it can even simulate Googlebot to validate what crawling tools are picking up.
Googlebot uses Chromium
Gary clarified that Googlebot uses its own custom built solution for fetching and downloading content from the web, which is then passed on to the indexing systems.
There is no evidence to suggest that the Googlebot crawler uses Chromium or Chrome. However, Joshua Giardino at iPullRank makes a great argument about Google using Chromium to create a browser based web crawler.
Google Chrome is also based on the open-source Chromium project, as are many other browsers.
It makes sense then to use a Chromium browser to simulate Googlebot web crawling to better understand your website.
Unique SEO insights
Using Google Chrome to quickly interpret web pages like Googlebot can help you understand exactly why there are crawling or indexing issues in minutes.
Rather than spending time waiting for a web crawler to finish running, I can use this technique to quickly debug potential crawling and indexing issues.
I then use the crawling data to see the extent of an issue.
Googlebot isn't human
The web is becoming more complex and dynamic.
It's important to remember that when debugging crawling and indexing issues you are a human and Googlebot is a machine. Many modern sites treat these two users differently.
Google Chrome, which was designed to help humans navigate the web, can now help a human view a site like a bot.
How to set up the Googlebot simulator
Right, enough of the why. Let me explain how to create your own Googlebot simulator.
Download Google Chrome
I'd recommend downloading Chrome Canary and not using your own Google Chrome browser (or if you've switched to Firefox then use Google Chrome).
The main reason for this is because you will be changing browser settings, which can be a pain if you forget to reset them or have a million tabs open. Save yourself some time and just use Canary as your dedicated Googlebot simulator.
Download or use a VPN
If you are outside the United States then make sure you have access to a Virtual Private Network (VPN), so you can switch your IP address to the US.
This is because by default Googlebot crawls from the US, and to truly simulate crawl behaviour you have to pretend to be accessing a site from the US.
Chrome settings
Once you have these downloaded and set up it's time to configure Chrome settings.
I have provided an explanation of why you need to configure each setting. The original idea of using Chromebot came to me when I rewrote the Page Rendering Service guide.
1. Web Dev Tools
The Web Developer Tools UI is an important part of viewing your website like Googlebot. To make sure you can navigate around the console you will need to move the Web Dev Tools into a separate window.
Remember that your DevTools window is linked to the tab you opened it in. If you close that tab in Google Chrome the settings and DevTools window will also close.
It is very simple to do this, all you need to do is:
- Right-click on a web page and click Inspect (or CTRL+SHIFT+I).
- Navigate to the right side, click on the 3 vertical dots, and select the far left dock side option.
The Web Dev Tools console is now in a separate window.
2. User-agent token
A user-agent string (a line of text) is a way for applications to identify themselves to servers or networks. To simulate Googlebot we need to update the browser's user-agent to let a website know we are Google's web crawler.
Command Menu
Use the Command Menu (CTRL + Shift + P) and type "Show network conditions" to open the network conditions tab in DevTools and update the user-agent.
Manual
Navigate to the separate Web Dev Tools window and press the Esc button. This will open up the console.
Click on the three little dots on the left of the console tab.
In the list of options, click on Network conditions. This will open the network conditions tab next to the console tab.
In the network conditions tab, untick the user agent "Use browser default" option (called "Select automatically" in older versions of Chrome).
Google Chrome will now allow you to change the user-agent string of your browser to Googlebot or Googlebot Smartphone.
I usually set it to Googlebot Smartphone, as Google uses mobile-first indexing by default. Although I'd recommend checking in Google Search Console to see which Googlebot crawls your website most often.
The Googlebot user-agent will automatically use the dev beta Chrome version, not the stable version. This isn't usually an issue for 99% of websites, but if you need to you can input the custom user-agent from stable Chrome.
Now you've changed the user-agent, close the console (press Esc again).
3. Enable stateless crawling
Googlebot crawls web pages stateless across page loads.
The Google Search developer documentation states that this means each new page crawled uses a fresh browser and does not use the cache, cookies, or location to discover and crawl web pages.
Our Googlebot simulator also needs to replicate being stateless (as much as it can) across each new page loaded. To do this you'll need to disable the cache, cookies, and location in Chrome.
Disable the cache
Use the Command Menu (CTRL + Shift + P) and type "Disable cache" to disable the cache when DevTools is open. Or, manually, go to the Network panel in DevTools and check "Disable cache".
Disable cookies
In Chrome navigate to chrome://settings/cookies. In the cookies settings choose the option to "Block third-party cookies".
Disable location
In Chrome navigate to chrome://settings/content/location. Toggle "Ask before accessing (recommended)" to "Blocked".
4. Disable Service Workers
Googlebot disables interfaces relying on the Service Worker specification. This means it bypasses the Service Worker, which might cache data, and fetches URLs from the server.
To do this navigate to the Application panel in DevTools, go to Service Workers, and check the "Bypass for network" option.
Once disabled the browser will be forced to always request a resource from the network and not use a Service Worker.
5. Disable JavaScript
The Googlebot crawler does not execute any JavaScript when crawling.
The crawling and rendering sub-systems are further explained in the Understand the JavaScript SEO basics guide and Googlebot & JavaScript: A Closer Look at the WRS at TechSEO Boost 2019.
Googlebot is a very complex system and even this diagram is an oversimplification. However, the Googlebot crawler must first fetch, download, and inspect a web page regardless of rendering.
It's important to make sure we can inspect server-side HTML, HTTP status codes, and resources without JavaScript in our Googlebot simulator.
Command Menu
Use the Command Menu (CTRL + Shift + P) and type "Disable JavaScript" to quickly disable JavaScript.
Manual
To disable JavaScript in Chrome, navigate to DevTools and click on the settings cog.
Then check the "Disable JavaScript" box.
Now when you use your Googlebot simulator you'll only be inspecting the initial server-side HTML. This will help you understand if there are any link, content, or HTTP status code issues causing the crawler problems.
6. Network panel
Finally, it is time to configure the Network panel. It is in this area of DevTools where you will be spending a lot of time as Googlebot.
The Network panel is used to make sure resources are being fetched and downloaded. It is in this panel that you can inspect the metadata, HTTP headers, content, etc. of each individual URL downloaded when requesting a page.
However, before we can inspect the resources (HTML, CSS, IMG) downloaded from the server like Googlebot, we need to update the columns to display the most important information in the panel.
Go to the Network panel in DevTools (now a separate window). On the table in the panel, right-click on the column headers and select the headings listed below to be added as columns (remove any others not listed).
I have also provided a brief explanation of each heading and why they should be added.
| Column | Why it matters |
|---|---|
| Status | The HTTP status code of the URL being downloaded from the server. Googlebot will alter its crawling behaviour depending on the type of HTTP status code. It is one of the most critical pieces of information to understand when auditing URLs. |
| Scheme | Displays the insecure http:// or secure https:// scheme of the resource being downloaded. Googlebot prefers to crawl and index HTTPS URLs, so it's important to understand the scheme being used by resources on a page. |
| Domain | Displays the domain the resources were downloaded from. It's important to understand if important content relies on an external CDN, API, or subdomain, as Googlebot might have trouble fetching the content. |
| Remote address | The IP address of the host the resources are downloaded from. As the crawl budget of a website is based on the IP address of the host and not the domain, it is important to take into account the IP address of each URL fetched. |
| Type | The MIME type of the requested resource. Make sure important URLs are labelled with the correct MIME type, as different Googlebots are interested in different types of content (HTML, CSS, IMG). |
| Size | The combined size of the response headers plus the response body, as delivered by the server. Improving site speed helps both your users and Googlebot access your site quicker. |
| Time | The total duration, from the start of the request to the receipt of the final byte in the response. Your server's response time can affect the crawl rate limit of Googlebot. If the server slows down, the crawler will crawl your website less. |
| Priority | The browser's best guess of which resources to load first. This is not how Googlebot prioritises URLs to crawl, but it can be useful to see which resources the browser prioritises (using its own heuristics). |
| Last Modified | The date and time the origin server believes the resource was last modified. This can be used by Googlebot, in combination with other signals, to help prioritise crawling on a site. |
Switch to a US IP address
Once you have updated the Network panel columns in Chrome DevTools your Googlebot simulator is almost ready.
If you want to use it straight away you need to switch to a US IP address.
Googlebot crawls from the United States of America. For this reason, I'd always recommend changing your IP address to the US when using your Googlebot simulator.
It's the best way to understand how your website behaves when visited by Googlebot. For example, if a site is blocking visitors with US IP addresses or geo-redirects visitors based on their location, this might cause issues with Google crawling and indexing a website.
I, Googlebot Chrome
Once your IP address is switched you are ready to go and have your own Googlebot simulator.
If you want to test to see if it works, go to angular.io or eventbrite.com. These websites require JavaScript to load content and links. With JavaScript disabled these sites won't load content properly in the interface.
Frequently asked questions
Does the simulator work for just one tab?
Yes. DevTools settings only apply to the tab you currently have open. Opening a new tab will cause the Disable JavaScript and user-agent settings to be reset.
Other Chrome based settings (cookies, service workers) will still be configured.
Does this help to debug JavaScript SEO issues?
Yes, this technique can be used to debug JavaScript SEO issues on a website when comparing view-source to rendered HTML. Although there might be better extensions and tools to do this at scale.
Do I need to update the settings every time?
Once your tab is closed you'll need to update the following settings:
- Disable JavaScript
- Update the user-agent token
All other settings will have been saved by the browser.
Why do I need to use Chrome Canary?
I only suggest using it to stop you from messing up your normal Chrome browser and having to spend time going back and forth between settings.
If you use Firefox or Safari then just download the normal Google Chrome.
I've already built this in headless Chrome or through some other automation?
First off, well done! If you're like me and don't (currently) have the time or capacity to learn new coding languages, then this non-code method is a great way to get started.
