How to run a GTMetrix scan on a password protected WordPress website

Have you ever been tasked with speeding up a client’s site that is not publicly accessible? This can be problematic because in order to get benchmark performance scans or show the results you’ve accomplished, a scanning tool such as GTMetrix would need to be logged in in order to scan the private pages. Additionally, the details of a scan help identify what areas should be optimized. Without that information, you are flying blind and much less likely to have an optimal result.

In this video tutorial, Stephanie will guide you through the surprisingly simple process of running a GTMetrix scan on a password-protected WordPress website.

What kind of websites are password protected?

Many sites require visitors to have a login to access certain content or features, such as membership sites, e-commerce websites with customer accounts, LMS (Learning Management Systems), or company intranet portals.

Using Cookies to Scan a Password Protected WordPress Site

In this video, we’ll cover:

  • How to generate a session cookie for GTMetrix to use

  • How to add the session cookie to GTMetrix

  • How to run a GTMetrix scan on a password-protected site

By following these steps, you’ll be able to get a comprehensive performance report for your password-protected website and make informed decisions about how to optimize it for better speed and user experience.

Don’t let a login wall hold you back from improving your site’s performance – watch this video or check out the transcript below!

Video Transcript

0:02 Hey guys, it’s Steph here with FocusWP. I just figured out a cool little trick and I thought I would share.

0:08 If you have a website that is password protected and you want to run a GTMetrix scan of it, GTMetrix will be blocked so it wouldn’t be able to, so I’m going to teach you how. Here is an InstaWP URL that I set up. You can see here I’m going to go to this url and it just takes you right to this login page because I installed a plug in that blocks access to it. So what I’m going to do here is log in.

0:40 And once I’m logged in, you’ll see it’s just a generic we’re pressing install, but I blocked entry to it. So then if we come back over here we go to analysis options. What we’re going to do is we’re going to open this up.

1:01 And what we’re going to use is this cookies field here. So I’m going to go back over to the site. Now that I’m logged in, I’m going to open up the Chrome inspect tool.

1:10 You can do it by right clicking the way I just did, or you can go to the three dots and go to more tools developer tools.

1:19 So we go. And then you’re going to go to the application tab here and scroll down to cookies. And then click on the website URL that’s underneath the cookies.

1:32 And then what we’re going to do here, I’m going to make this a little bit bigger so we can see what we’re working with.

1:36 It’s got a whole bunch of cookies here that are coming in. What we want to do is look for this one here: “wordpress_logged_in.” That’s the cookie we want. so, we’re going to  double click it here and copy this value.  Jump back over to the GTMetrix dashboard. Paste that in and put an “=”. Then we’re coming back over here. We’re going to grab the value. We’re going to just copy that. You can see that’s got our username in there, so you know that’s the one that we’re actually logged in as. Then we just paste that in. That little error goes away and now we can click “Analyze.” And you’ll see that that’s then able to run a scan on the site.

2:19 I’m going to move this out of the way so that you can see over here what we’re looking. It says the server location using Chrome and then here has this analysis option:  “Cookies.” That’s what we just set up. And you can see that it was able to access this page and run a report.

2:34 I would hope that this had a 100% because there is almost nothing on it except for that one plug-in. So anyway, I hope that that is useful to some of you guys because it sure was to me!

About the Author

Stephanie is a geek, entrepreneur, business coach, podcast host, internationally known speaker, notebook hoarder, and dad joke aficionado. She loves helping WordPress businesses thrive and grow.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

WordCamp US 2023 FocusWP Meetup

WordCamp US 2023 FocusWP Meetup

Are you attending WordCamp US in August 2023? If you scored a ticket, then I'll be seeing you there! We are hosting a casual meetup for any FocusWP friends who will be in Washington DC for the conference. Details are still being worked out. If you are interested in...

How to sell web design services

How to sell web design services

In episode 269 of the Divi Chat podcast, the panel shared their successful sales strategies for web design projects.   As a web designer, you know the value of a well-designed website. But how do you convince potential clients of its value? Selling web design services...

Focus Group: How Artificial Intelligence Tools Work

Focus Group: How Artificial Intelligence Tools Work

Focus On Your Biz Focus Group with Mackenzie Bowe, Founder of GPTBoss Date recorded: January 26, 2023Length: 48:46Transcript: See belowTopics covered: Tour of GPTBoss Bertha.ai new tools (Chat, and image search) What is prompt engineering? Behind the scenes of...

See our site in 3D!

Subscribe to our newsletter and we’ll send you a pair of FocusWP 3D glasses!

Join our free, private Facebook group to network with like minded business owners and pick up tons of useful tips and resources.

Get Focused

The geeks at FocusWP are constantly on alert for new vulnerabilities and nefarious characters in the world of WordPress and we send out a list of our top concerns every Wednesday so you know what to "Watch Out" for, without doing any legwork.

You can also subscribe to our "Tips & Tricks" newsletter, which is a semi-regular email with cool tools, educational resources, and useful tips to make your digital life a little easier.