Jetpack

How to install Stats and Analytics on your WordPress site with Jetpack

If you run a website you probably want to know how many visitors you’re getting. So, unsurprisingly, Jetpack’s WordPress.com Stats is one of the most popular features we offer! This feature gives you the ability to quickly see how many visits your site gets, what posts and pages are most popular and where your visitors are coming from.

There are many plugins and services that provide statistics, but data can be overwhelming. WordPress.com Stats makes the most popular metrics easy to understand through a clear and attractive interface. Plus, you can use them in conjunction with other analytics plugins and services.

This article covers:

  1. How to enable your stats
  2. View and understand your stats
  3. Configure and customize your settings
  4. What about Google Analytics?
  5. Installing Jetpack

 

1. Enabling your Stats

WordPress.com Stats are automatically enabled when you activate and connect Jetpack to WordPress.com: no additional setup required! (See the last section for help installing Jetpack.)

smiley

How do you know it’s working? We add a little smiley face at the bottom of your webpage like the one on the right. (Note: From Jetpack version 3.1 onwards the smiley won’t be on by default. You can turn it on and off yourself as described in the Configure and Customize your Settings section below.)

If you’re saying to yourself “Whoa! That’s big!”, don’t panic: in fact it’s quite tiny. Here the smiley in its actual size: actualsize

It’s pretty small. However, we do give you the choice of turning the smiley display off: see the Configure and Customize your Stats section below to find out how.

 

2. View and Understand your Stats

Now that your stats are enabled and running, you can view them in a number of different ways with Jetpack.

  1. Add to Main Dashboard
    You can add the stats module to your main Dashboard screen to give you at-a-glance site views as soon as you log in. On your main Dashboard screen, you can enable the Site Stats widget by opening your Screen Options tab and check the Site Stats box.

    jp-stats2-edit

    Then you can see your site visits, most viewed pages, and search terms people used to find your site at a glance. Handy, right?

    Jetpack Dashboard Stats

    The Site Stats widget on your Dashboard.

  2. In-Depth Stats
    Get more in-depth stats from your Dashboard by visiting Jetpack –> Stats from the menu bar on the left hand side. Here you can see information about Referrers, Top Posts & Pages, Search Engine Terms, Subscriptions, and Clicks.

    This is a great way to see what content is popular on your site so that you can write more about the topics that your visitors really like.
     

  3. Enhanced Stats
    WordPress.com Stats

    Country view stats on WordPress.com

    To get even more information on Stats, you can click the “Show Me” button next to the “Did you know you can view enhanced stats on WordPress.com?” text at the top of your Dashboard stats page to view your stats on WordPress.com.

    By visiting your stats page, we bring you even more information about your site including your best total views per day, your all-time views and comments totals, and features like Views By Country which shows you where in the world your posts are being seen!

    You can also look at stats per day, week, and month. Find out even more about the Jetpack Site Stats – including on what we don’t track through Jetpack – on the WordPress.com documentation page.

 

3. Configure and Customize your Settings

Everything we’ve covered up to this point is turned on by default when you activate and connect Jetpack to WordPress.com.

But did you know that you can also do some custom configuration of stats? Go to Jetpack –> Settings in your dashboard, find the WordPress.com Stats feature in the alphabetized list, and click the “Configure” link that appears when you hover your mouse over it:

configure_stats

In the next screen, you’ll see a number of options for configuring your stats. I’ll cover each one more in depth below.

configure_jetpack_options

  1. Admin Bar
    Checking this box will add the stats “Sparkline” to your admin bar when you’re viewing the front end of your site. If you’re in the wp-admin part of your site, this will not display.

    It looks like this (highlighted in green):

    stats_chart

    These lines represent the last 48 hours of page views for the current blog, with darker lines indicating nighttime page views. Each line spans a time period of two hours. The number that appears when you hover over the Sparkline is the overall highest amount of views per hour during the most recent 48 hour period.

    You might ask why you would need this. It’s a great way of seeing you site’s activity at a glance so that you can quickly note any unusual traffic activity when you’re not in your Dashboard.

  2. Registered Users
    You can choose whether or not to track site visits or site page views from logged in users. You can even specify different user groups that you want to track – or not to track – stats for.

    If you want to know how often your Editors are on your website, you can track it by checking the box next to Editor. It’s that simple!

  3. Smiley
    Remember how I mentioned earlier about how you could hide the stats smiley? (Although I’m not sure why you would, it makes the world a better place!) But, if you want to hide the smiley from displaying on your website, then you can check the box here.
     
  4. Report Visibility
    By default, Stats can only be viewed by logged in, Administrator users. This hides stats from other registered users who are not Administrators.

    If you want other user groups (Editor, Author, Contributor, or Subscriber) to have the ability to view stats, you would have to opt-in those user groups by checking the box next to the user group you want to add. (Note: you cannot uncheck stats visibility for Administrator users.)

 

4. What about Google Analytics?

One of the more common questions we get about Jetpack is: “I want to use Google Analytics! Do I have to disable WordPress.com Stats in Jetpack?”

No!

You can use both on your WordPress installation. The benefit of using WordPress.com Stats is that you can see a snapshot of your blog's activity right from your Dashboard. If you want to use another analytics service you can certainly do so. WordPress.com Stats works great alongside Google Analytics and other stats tracking services.

 

5. Installing Jetpack

To see WordPress.com Stats working on your site you will need to install the Jetpack plugin. (Note: Jetpack works with self-hosted WordPress sites. If your site or blog is hosted at WordPress.com you already have access to all Jetpack features!)

There are two ways of installing the Jetpack plugin:

  1. The simplest way is install it directly from your Dashboard. You can find step-by-step instructions here.
  2. Alternatively, if you’re an advanced user, you can download the plugin files (.ZIP) and install it manually.

I hope this has helped you learn more about Jetpack’s WordPress.com Stats feature. If you have any questions please feel free to leave a comment below.

Posted in Features | Tagged , , , , | 3 Comments

Jetpack 3.0: Now landing at a blog near you

What good are dozens of features if they’re hard to find and use? Welcome to Jetpack 3.0, with a completely overhauled admin interface that makes configuring and managing Jetpack quick, easy, and fun. (Yes, fun!)

Jetpack Dashboard

The new Jetpack Dashboard provides a quick overview of all Jetpack’s powerful features — sort by category, alphabetical order, or by newest additions to get right to the one you’re interested in.

Jetpack 3.0 Dashboard

Interested in a feature, or not sure what it does? Click on the title for a description and related information:

Jetpack 3.0 Related Posts Modal

Jetpack Settings

Head over to the new Settings page to see all the available features. The updated Settings page contains much-requested bulk activate and sorting features. Wondering how to configure a feature? Hover your mouse over any enabled feature to pull up a configuration link:

Jetpack 3.0 Settings

Site Verification Tools

Verifying your site ownership with services like Google, Microsoft’s Bing, and Pinterest can be an experience in frustration. Jetpack 3.0 adds a Site Verification Tools module — just register with any of the available services (links are provided on the feature’s configuration page), drop in the provided key, and presto! Site ownership verified. Read more about it!

And many more!

There are many more minor enhancements and bug fixes with Jetpack 3.0. (Too many to list here!) For full details see the change log.

As always, we’re continually striving to make the Jetpack experience more streamlined and enjoyable. We would love to hear what you think of the new user interface:  what do you like? What would you love to see in the future? Leave us a comment below!

Posted in Releases | Tagged | 28 Comments

Jetpack 2.9.3: Critical Security Update

Jetpack version 2.9.3 contains a critical security update, and you should update your site and any you help manage as soon as possible. You can update through your dashboard, or download Jetpack manually here.

During an internal security audit, we found a bug that allows an attacker to bypass a site’s access controls and publish posts. This vulnerability could be combined with other attacks to escalate access. This bug has existed since Jetpack 1.9, released in October 2012.

Fortunately, we have no evidence of this being used in the wild. However, now that this update is public, it’s just a matter of time before exploits occur. To avoid a breach, you should update your site as soon as possible. (The vulnerability has been disclosed on the MITRE Common Vulnerabilities and Exposures system as CVE-2014-0173.)

This is a bad bug, and Jetpack is one of the most widely used plugins in the WordPress world. We have been working closely with the WordPress security team, which has pushed updates to every version of the plugin since 1.9 through core’s auto-update system. We have also coordinated with a number of hosts and network providers to install network-wide blocks to mitigate the impact of this vulnerability, but the only sure fix is updating the plugin.

Over the next few hours, we will reach out to individuals whose sites are still running an insecure version. Sites that don’t update may be disconnected from the Jetpack service for their own security, and will be able to reconnect as soon as their version of Jetpack is updated.

If you host a large number of Jetpack-powered blogs, please leave your contact information in the comments so we can be in touch in the future. We have prepared and shipped point releases for all eleven vulnerable branches of the Jetpack codebase: 1.9.42.0.6, 2.1.4, 2.2.7, 2.3.7, 2.4.4, 2.5.2, 2.6.3, 2.7.2, 2.8.2, and 2.9.3. If you can force these upgrades for your hosted users, it will prevent their sites from being compromised.

Finding and fixing bugs is a key part of software development. I can’t promise there will never be another issue like this, but I can promise that when a problem is found we will do everything in our power to protect as many people as possible, as quickly as possible. We care deeply about each and every WordPress user.

Posted in Releases | Tagged , | 92 Comments

Jetpack 2.9

Jetpack 2.9 is out! We’ve got a few exciting new additions — Multisite support, a Related Posts module, and a more secure Single Sign On — along with many smaller improvements and bug fixes.

Manage all your Multisite connections with one login

Logging in to each blog on a Multisite network to connect and configure Jetpack can be time consuming. Now, you can administer them all from one master account. When network-activating Jetpack, you’ll see a new Jetpack > Settings tab in your Network Admin. From here, you can manage all your blogs’ connections, control whether individual blog admins can reconnect with their own account, and designate which Jetpack modules are activated by default.

Make your site stickier with Related Content

The Related Posts module encourages your visitors to stick around longer by displaying links to additional content on your site related to what they’re currently viewing. Usually, analyzing website content to suggest relations eats up precious server resources. By utilizing the power of WordPress.com, the Related Posts module gives visitors more of what they came for while keeping your server resources freed up.

Sample Related Posts

More security with Single Sign On

The Single Sign On module already gives you peace of mind against compromised user accounts because WordPress.com handles all the authentication for you — your site never touches the user’s private credentials. This release takes security a step further by giving site administrators the ability to require users to have Two-Step authentication enabled on their WordPress.com account before they can log in.

Posted in Releases | Tagged , , , , , | 47 Comments

How to exclude a category from the Mobile Theme

If you’ve ever wanted to exclude a particular category of posts from being displayed by Jetpack’s Mobile Theme, you can use the following code in your theme’s functions.php or in a functionality plugin:

// Check if we are on mobile
function jetpackme_is_mobile() {
 
    // Are Jetpack Mobile functions available?
    if ( ! function_exists( 'jetpack_is_mobile' ) )
        return false;
 
    // Is Mobile theme showing?
    if ( isset( $_COOKIE['akm_mobile'] ) && $_COOKIE['akm_mobile'] == 'false' )
        return false;
 
    return jetpack_is_mobile();
}
 
// Modify the main query on the home page for the mobile theme.
function jetpackme_modify_main_query( $arg ) {
    if ( jetpackme_is_mobile() && is_home() ) {
         $arg -> set( 'cat', '-1' );
    }
}
add_action( 'pre_get_posts', 'jetpackme_modify_main_query' );

You would need to replace the 1 in

$arg -> set( 'cat', '-1' );

with the ID of the category you want to exclude.

Looking for more mobile tips? You’ll find them here! And if you more general need help with the Mobile Theme, take a look at our support doc.

Posted in Code snippets, Tips & Tricks | Tagged , , | Comments Off

Let Users Showcase their Posts with Featured Content

Featured Content Settings

The power of showcasing content

Featured Content is a great way to let users highlight their most important posts. Our Theme Wranglers use it often on WordPress.com, but this awesomeness is available to all theme developers.

The concept is simple: each theme can determine where and how Featured Content is displayed. Then, right from their blog’s dashboard, users can specify a tag to determine which posts to showcase in the Featured Content area. Users can even specify how many posts they want to show, and decide if they want to hide the tag from post meta and tag clouds.

Featured Content in Action

If you’ve been following the development of the Twenty Fourteen theme, you’ve seen the prominent featured posts section on the front page. This area was created with Featured Content! The user specifies which posts they want to feature, and the theme does the rest of the work. Check it out here.

Twenty Fourteen

Another great example of Featured Content is the rotating header on the Superhero theme. In Superhero, Featured Content was coupled with Flexslider to create the beautiful post slider that you see at the top of the front page.

Superhero Theme

The possibilities really are endless. Photography themes can use Featured Content to display beautiful photos, and business sites can highlight their most important news and alerts. Best of all, users don’t have to worry about Custom Post Types or theme-specific categories or tags. They simply set a tag, and the theme handles the rest.

Add Featured Content in a snap

Adding Featured Content to your theme is a piece of cake. You can find all of the information you need to get started on the Featured Content support page.

Keep in mind that Featured Content is designed to spotlight content right on your theme’s homepage. If your theme includes a front-page.php file, that’s the only template file to which you’ll need to add the Featured Content area.

Do you have a great idea for Featured Content? Or have you done something cool with it on your own site? Let us know! We’d love to see how Featured Content is being used in the wild!

Posted in Features, Tips & Tricks | Tagged | 4 Comments

Jetpack 2.8: Introducing Markdown and Improving Monitor

We’re thrilled to announce that our latest update is out the door! Jetpack 2.8 includes improvements to Jetpack Monitor and also introduces a brand new Markdown module.

Jetpack Monitor Module Card

Improved Jetpack Monitor notifications

Multiple users can now receive Jetpack Monitor email notifications. As an admin user linked to WordPress.com, you can opt in to receive these notifications right from your dashboard. Just navigate to the Jetpack page, find the Monitor module card, and click on Configure. Then, check the “Receive Monitor Email Notifications” setting and save your changes. Now if your site ever goes down you will receive notifications to your WordPress.com linked account email!

Write more efficiently with Markdown

Since introducing Markdown on WordPress.com, we’ve had a lot of requests to bring it over to Jetpack. Well, queue the trumpets, start the drumroll, Markdown is here!

For those who don’t know, Markdown is a quick way to add formatted text without writing out any HTML. Markdown lets you compose links, lists, and other styles using regular characters and punctuation marks. If you want a quick, easy way to write and edit rich text without having to take your hands off the keyboard or learn a lot of complicated codes and shortcuts, then Markdown might be right for you. We do strongly suggest sticking with the “Text” tab in the Editor when using Markdown.

Here is an example of Markdown in the text editor:

Markdown in text editor

And here is that same Markdown converted to HTML in the Reddle theme:

Markdown converted to HTML in Reddle

Isn’t that pretty awesome? You can check out the announcement post over at WordPress.com for more information about Markdown and see our Markdown support page.

Publicize Support for Custom Post Types

For our developer friends out there, we’ve added Publicize support for custom post types, allowing you and your clients to automatically post new entries from any CPT to your social media networks. You’d need to make one small tweak in the code defining the CPT—just add 'publicize' to the CPT’s 'supports' array.

For example, to enable the title, editor, Publicize, and Jetpack’s new support for Markdown: 'supports' => array( 'title', 'editor', 'publicize', 'wpcom-markdown' ),

As always, if you notice any issues with this release, just give us a shout over at the forums or send us a message through our contact form. Thank you for flying with Jetpack!

Posted in Releases | Tagged , , , , , | 29 Comments

Publicize Crash Course: LinkedIn, Tumblr, and Path

Carolyn Sonnek:

The second part of the Publicize Crash Course series. Learn how to connect LinkedIn, Tumblr, and Path in your Publicize settings!

Originally posted on WordPress.com News:

Yesterday, we learned the ins and outs of pushing your new posts to Facebook, Twitter, and Google+. Today, we continue our tour of the Publicize universe with the three other social networks you can connect to from your WordPress.com account: LinkedIn, Tumblr, and Path.

The ability to share your content with different audiences quickly and easily will help you cultivate a healthy readership. Just as important, with Publicize you can tweak your sharing preferences so that each post reaches its intended destination: you can always choose which services to publish to, and what custom message to include (if any).

You can connect to these three services in exactly the same way, and from the exact same page, as the ones discussed yesterday. Simply visit Settings → Sharing in your dashboard, click “Connect” on the desired one, and authenticate your account in the window that opens. Once you’re done…

View original 491 more words

Posted in Tips & Tricks | Comments Off

Publicize Crash Course: Facebook, Google+, and Twitter

Carolyn Sonnek:

Great explanation of the Publicize feature found in Jetpack. Also instructions on how to connect Facebook, Google+, and Twitter accounts.

Originally posted on WordPress.com News:

“I’m publishing posts every day, but where are my readers?”

While there’s no exact science to successfully building a readership, you have a number of built-in tools on WordPress.com to share your work with the world. Our advice? Hook up your various social accounts to WordPress.com and let us do the rest. We want to emphasize, especially to our newest users, that no blog is an island. Clicking Publish is just the first step, and sharing your work across the internet is key to expanding your audience.

What is Publicize?

With Publicize, you can automatically push out your new posts to social networks: Facebook, Google+, Twitter, LinkedIn, Tumblr, and Path.

Publicize

Connecting to your accounts is easy, and you can select which ones to link to your WordPress.com account. To get started, head over to Settings → Sharing. At the top of the page, you’ll see the options pictured…

View original 823 more words

Posted in Tips & Tricks | Comments Off

Jetpack 2.7: Share your content on Google+

We recently released a slew of Google+ integrations for WordPress, and mentioned that Google+ Publicize support would be coming soon to Jetpack users. Publicize makes it easy to share your new posts on other social networks (like Facebook and Twitter). Using it is a great way to build your readership and expose your content to new audiences.

Well, the wait is over — we’re excited to announce that you can now share your latest content on your Google+ Profiles and Pages!

Improved overall performance

Jetpack 2.7, which has just been released, adds Publicize to your site. In order to connect your account(s), head to your dashboard, then go to Settings → Sharing. Clicking on the “Connect” button next to the Google+ logo will prompt you to authenticate your account. Once you have, you can start enjoying the benefits of publishing your content to Google+ — just make sure that you’ve enabled the Publicize module.

Jetpack 2.7 also contains multiple bugfixes and other little features. You can view a full changelog of these updates by visiting this page.

We hope you enjoy Jetpack 2.7!

Posted in Features, Releases | Tagged , , | 44 Comments
Follow

Get every new post delivered to your Inbox.

Join 63,495 other followers