Use faster-and-simpler Koko Analytics for speed — instead of slow-and-complicated Google Analytics?

WordPress Mobile Speed

Updated


There are no affiliate links on PagePipe.

“If you care more about user experience than data mining, use the Koko Analytics plugin.”

We don’t want more gobbledygook big data. We want fewer data. We only want the metrics we need. Not what Google thinks is cool. We’re sold on the Koko Analytics plugin. It’s got just the right stuff. Not too much noise and buttons like Google Analytics. And not too little like a visitor-counter plugin. And not too complicated like AwStat c-panel tool.

Words of praise for the Koko Analytics plugin:

  • Faster.
  • More respectful of privacy.
  • Perfect Google Analytics alternative.
  • Pleasantly to the point and visible straight away.
  • GDPR compliant.
  • Works out of the box.
  • Beautiful design and minimalist analytics plugin.
  • No need to sign up or send data to a third party.
  • Easy to use self-hosted analytics plugin.

WE WON’T TELL YOU GOOGLE ANALYTICS SUCKS —
YOU ALL READY KNOW THAT.
Go ahead. Google-search the phrase “Google Analytics Sucks.

How many hits?
4.6 million.

Remember Google told you that number.

★ ★ ★ ★ ★
Koko Analytics

1.3M zip download file size
53 to 60 millisecond load time

Is 60-milliseconds acceptable? Well, let’s compare it to Google Analytics: up to 500 milliseconds!
REFERENCE: https://pagepipe.com/how-does-google-analytics-affect-mobile-page-speed/

Koko Analytics is a privacy-friendly analytics plugin for WordPress. It does not use any external services. Data about your visitors is never shared with any third-party company.

Koko dashboard statistics.

No visitor-specific data is collected. Site visitors can opt out of tracking by enabling “Do Not Track” in their browser settings.

Stop sharing with data thieves making money off your visitor’s data. Stop slowing down your website. Koko Analytics lets you focus on what is important. It gives you the essential metrics while respecting privacy.

Koko dashboard widget.
Plug and play
After installing and activating the plugin, stats will automatically be collected.

Privacy
No personal information or anything visitor-specific is tracked.

GDPR
Compliant by design with European Union's General Data Protection Regulation (GDPR).

Data ownership
No external services are used. Data about visits to your website is yours and yours alone.

Performance
Handles sudden bursts of traffic without breaking a sweat.

Metrics
All the essentials: visitors, pageviews, and referrers.

Cookies
There is an option to not use any cookies.

Referrer spam
Built-in blacklist to filter out referrer spam.

Cache
Fully compatible with pages served from any cache.
Koko settings page.

Does the Koko Analytics plugin respect my visitor’s privacy?

It records nothing that could lead back to the visitor. If the visitor has “Do Not Track” enabled in their browser settings, the visitor won’t be tracked at all.

Does this use any external services?

No, the data never leaves your website. That’s (part of) what makes Koko Analytics such a great choice if you value true privacy.

Does this set any cookies?
By default, yes. But you can disable this in the plugin’s settings. Without cookies, the plugin still detects unique pageviews, but not returning visitors.

Will this slow down my website?
No, the plugin is built in such a way that it never slows down your website for your visitors. If there is any heavy lifting to be done, it is done in a background process.

The plugin doesn’t depend on any external services. It’s much faster than third-party analytics tools.

What is the definition of a “pageview”?
A pageview is defined as a view of a page on your site. If a user clicks reload after reaching the page, this is counted as an extra pageview. If a user navigates to a different page and then returns to the original page, a second pageview is recorded as well.

What is the definition of a “visitor”?
A visitor represents the number of sessions during which your website or a specific page was viewed one or more times.

Koko makes an Ajax request to send the statistics to your server. This call can’t be cached. If it was served from cache, that visit wouldn’t be counted. It uses little server resources. The admin-ajax calls are a fallback. The Ajax call is not about updating the totals. It’s the actual counting of the visit itself. It does so on each page view.

There will always be a call to the Koko script to collect analytics one way or another on each pageload.

Koko writes statistics to that file and then collects them later in the background. Koko will automatically use the best/fastest way available for your site setup.

Koko Analytics performs an HTTP request to /wp-admin/admin-ajax.php for each pageview. It stores the information from that pageview in a file in your uploads directory.

There is no avoiding this request, but there is a way to speed up the resource cost. For standard WordPress installations, your WordPress root directory is writable. Then Koko Analytics switches to this optimized endpoint automatically. There is no need for you to do anything.

Tracking requests cached by the host, add a cache-busting query parameter to the tracking URL.

Koko Waterfall test
Exhibit A

Two requests from Koko. One is lazy loaded.

Google Analytics Waterfall test
Exhibit B

Google Analytics – nothing is lazy loaded and load time is pushed out 400 milliseconds.

The last two screengrabs tell the true story. Look at the vertical blue line. Google Analytics is 400 milliseconds slower than Koko on this simple test site. Even with a slight server TTFB advantage on the Google Analytics test.

Both tests were done on the same page and server using WebPageTest.org.

BONUS Feature – you can add a section to your posts showing related posts. Like this:

The Koko plugin can create a popular post widget. Bonus. This extra feature doesn’t add page weight like most popular post plugins. Sweet.

Godspeed-

Steve Teare
performance engineer
June 2021

 

PagePipe Site Tuning Services for Speed

Instead of band-aid approaches, we drill down to the root cause of your slow site. This is origin optimization. Also known as site tuning. To do this, we analyze site components:

  • Hosting
  • Theme
  • Plugins
  • Scripts and third-party services.
  • Images and media library.
  • We minimize globally loading plugin effects.

Find out more details about Site TuningGet Speed!