Viewing Your Page's Source Code the Way Search Engines Do
3 min read
Wix sites use Server Side Rendering (SSR) to convert the HTML code of your pages into the version that your visitors see in their browser.
You can view your page's source code the way search engines view it by changing the user agent in your browser's settings. The user agent helps identify which browser you're using. When you select a web crawler bot such as Googlebot as your user agent, you can view the exact content that the bot crawls.
In this article, learn more about:
Viewing your page's source code in Google Chrome
You can use Google Chrome's developer tools to view your page's source code the way search engines do.
To view using Google Chrome:
- Open the relevant page of your site in Google Chrome.
- Open the page's source code view:
- Windows: Right-click the page and select View page source (or View source). Alternatively, you can press Ctrl + U on your keyboard.
- Mac: Press Cmd + Option + U on your keyboard.
- Open the developer tools:
- Windows: Press the F12 key on your keyboard.
- Mac: Press Cmd + Option + I on your keyboard.
- Click the Customize and Control DevTools icon at the top right.
- Hover over More tools and select Network conditions.
- Deselect Use browser default under User Agent.
- Select Googlebot from the drop-down menu.
- Refresh the page.
Viewing your page's source code in Safari
You can use the Develop tab in Safari to view your page's code the way search engines do.
To view using Safari:
- Click Safari in the top menu.
- Select Settings.
- Select Advanced.
- Select the Show features for web developers checkbox.
Once you select the checkbox, Develop appears in the top menu.
- Open the relevant page of your site in Safari.
- Click Develop in the top menu.
- Hover over User Agent.
- Select Other at the bottom.
- Replace the text in the field with the following: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Safari/537.36
- Click OK to confirm.
Did this help?