Yoast Google Analytics plugin introduces stats dashboards, with lessons learned along the way

Yoast updated their popular Google Analytics plugin in December to include new stats dashboards that pull in Google Analytics data to your site. The stats are pretty fancy and give a nice quick glance at your stats without leaving your WordPress dashboard. They’ve learned some lessons about building a plugin feature at scale along the way too.

I look at my website stats a lot, but I typically just want a really brief snapshot to give me an idea of what’s happening right now on my website. I run both Jetpack’s WordPress.com Stats module and Google Analytics on this site, but I actually view the WordPress.com Stats many times more than Google Analytics, because they are right there in my dashboard.

New Analytics dashboards by Yoast

With the update to Yoast’s Google Analytics plugin, I can now get a similarly quick glance with either plugin.

yoast-analytics-dashboard

yoast-analytics-reports-dashboard

The new dashboards in Yoast’s plugin are nice, but definitely are what I’d consider a first iteration. It’s not a replacement dashboard for WordPress.com’s stats, yet.

For one, the dashboard is only pulling in stats once per day, so it’s not exactly a right now sort of thing. When I look at stats, it’s often to see how a recently published article is “trending” and I usually care most about the current day’s numbers. Additionally, the basic stats only show Sessions and Bounce Rate. I rely heavily on seeing referrals and clicks out of my site.

But that’s what early versions of new features are about. And the Yoast team has definitely learned a lot while rolling out these new dashboards.

Lessons learned with new features

I have had a notice on my site’s admin for a few weeks now, telling me that Google Analytics by Yoast can’t authenticate. I’ve re-authenticated a dozen times, but the notice has persisted. Thankfully, my stats were being tracked still, but I had no idea where that error was coming from.

This morning, I finally decided it was time to investigate, and I learned that this problem persists across many sites where this plugin is installed. I also had a pending update for the plugin in my dashboard, and the update message claimed to fix the issue. For me and others, it seems to have done so; at least so that the notice only appears on the actual analytics pages and not site-wide (which was incredibly annoying).

So, what went wrong? Well, I talked to Joost de Valk, Founder of Yoast, and he filled me in on the backstory.

Google Analytics are fetched via a WordPress cron job, and Yoast tells me that the lack of reliability (a common sentiment amongst plugin developers) of WordPress cron jobs can cause the plugin to think it needs re-authentication. Though he tells me there were a few other issues involved as well.

Now that the feature is a few weeks old, the plugin is only fetching data from Google once per day. That’s after they received a message from Google though. At first, they were grabbing the data live, and in a matter of hours they were far beyond the APIs limits.

Joost said to me, “We learned a lot in that week.” They had a number of releases in quick succession attempting to squash the issues pinging Google’s API. This included an update to using the newer OAuth 2.0 instead of 1.0 — which they had successfully used until the update.

Releasing plugins at scale

I have no idea what it’s like to release code at a scale that Yoast is doing. They have increased their development team from one person (Joost) to five people in a pretty short amount of time; and that team is learning.

That may not be a great excuse for causing issues with millions; but in my opinion it’s understandable, and it’s obvious to me their team is working hard to ship better products (which are basically all free for most people). I think as the team matures and lessons are learned, we’ll see better and better releases from Yoast — not that their current slate isn’t already the best on the market, proven by the fact that it seems everyone uses them.

Automattic (with Jetpack) may be the only team in the WordPress ecosystem that knows what it’s like to create a plugin to scale like Yoast’s. And Automattic just surpassed 300 people. Yoast’s team, in total, is fifteen people. I’ve heard a decent amount of grumbling from the WordPress community about Yoast’s frequent — and sometimes seemingly flippant — update procedures. These grumbles may be warranted. At the same time, I think we can all extend a little grace in times like these. Scaling is hard, and many large or growing WordPress companies can attest to. I think Joost de Valk cares about his products and the role he plays in the WordPress ecosystem as much as just about anyone, and I’m pretty pleased with the direction they are taking their plugins.

The updates to Google Analytics don’t seem like a whole lot right now — with a couple of new charts — but I think it has potential to be a great way to get a snapshot of site activity in the future.

One thing is for sure: this plugin may have started as a simple way to embed Google Analytics code, but it’s evolving to be much more than that. Not everyone will care to keep using it as it evolves — and will opt for a simpler solution — but I think most users will welcome the changes and the new features. I certainly like the potential.