Support Home > Jetpack Stats > Configure Jetpack Stats

Configure Jetpack Stats

Jetpack Stats provide insight into how visitors engage with your website. You can adjust which page views are counted to get the most meaningful data and who has access to your stats.

You can configure Jetpack Stats by going to the WP Admin and then Jetpack → Settings in the sidebar. Next, choose the Traffic tab. You will find the Jetpack Stats section there.

Enable a new Jetpack Stats experience

Your site will use the new Jetpack Stats experience by default. However, if you prefer the old stats experience, you can switch back by following these instructions:

  1. Go to WP Admin and then Jetpack Settings in the sidebar. 
  2. Click Traffic.
  3. Scroll down to the Jetpack Stats section and expand it.
  4. Toggle the Enable a new Jetpack Stats experience to the off position.

48-hour traffic snapshot in your admin bar

Jetpack adds a small chart to your admin bar with a quick view over 48 hours. Your admin bar is the black horizontal bar that appears at the top of the screen when you are viewing your site as a logged-in user. The bar can be activated or deactivated in your user profile (WP Admin → Users → Profile); you will need to locate the Toolbar setting.

The browser screen showing a stats chart in the horizontal bar at the top. The other part of the screen shows the latest news section of the website.

You can access your Traffic overview directly from the admin bar by clicking the chart.

The snapshot feature is activated by default. Here is how you can change this setting:

  1. Go to WP Admin and then Jetpack Settings in the sidebar. 
  2. Click Traffic.
  3. Scroll down to the Jetpack Stats section and expand it.
  4. Toggle the Include a small chart in your admin bar with a 48-hour traffic snapshot on or off, depending on your preference.

Counted views

By default, page views from logged-in users are not counted. You can adjust that by including visits from logged-in users depending on their user role (such as Administrator, Editor, Author, Contributor, or Subscriber).

Here is how:

  1. Go to WP Admin and then Jetpack Settings in the sidebar. 
  2. Click Traffic.
  3. Scroll down to the Jetpack Stats section and expand it.
  4. Toggle the roles under Count logged in page views from to turn each user role on or off according to your preferences.

Your site may also have custom roles enabled by plugins or custom code.  All these roles will appear under Count logged in page views from allowing you to turn them on or off.

You may sometimes want to exclude visits from some specific IPs. This can be done with the following code snippet:

add_filter(
	'jetpack_stats_excluded_ips',
	function ( $excluded_ips ) {
		$excluded_ips[] = 'your_IP_here'; 
		// if you want to add another IP uncomment the next line
		// $excluded_ips[] = 'another_IP_here'; 
        return $excluded_ips;
	}
);

If you want to exclude your own IP, you can find its value with a service such as whatsmyip.org.

You can read about adding code snippets in Add PHP Code Without Editing Files.

Who can view the stats

By default, only Administrators have access to Jetpack stats. However, you can grant access to other user roles.

Here is how:

  1. Go to WP Admin and then Jetpack Settings in the sidebar. 
  2. Click Traffic.
  3. Scroll down to the Jetpack Stats section and expand it.
  4. Toggle the roles under Allow Jetpack Stats to be viewed by to turn each user role on or off according to your preferences.

Your site may also have custom roles enabled by plugins or custom code.  All these roles will appear under Allow Jetpack Stats to be viewed by allowing you to turn them on or off.

Still need help?

Please contact support directly. We’re happy to lend a hand and answer any other questions that you may have.

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.