Skip to content

Releases: ibericode/koko-analytics

Koko Analytics v1.1

03 Oct 07:24
Compare
Choose a tag to compare

Koko Analytics v1.1.0 - Oct 3, 2023

  • Switch out Preact for the React version that is bundled with WordPress, reducing bundle size for the admin dashboard by 40 kB (or 30%).
  • Stop showing warning about WP Cron events not running if on local or developer environments.
  • Use the same Browserslist configuration as WordPress core.
  • Performance optimizations for fetching and parsing chart data.
  • Create optimized endpoint for fetching data for the totals component.
  • Settings page is now a server-side rendered page instead of a React component.
  • Improved CSS selector performance.
  • Add public PHP API. You can now call the following functions:
    • koko_analytics_get_most_viewed_posts() to get a list of the most viewed posts.
    • koko_analytics_get_realtime_pageview_count('-1 hour') to get the total number of pageviews in the last hour.
    • koko_analytics_track_pageview($post_id) to track a pageview to the post with ID $post_id

1.1.0-alpha

29 Sep 09:47
Compare
Choose a tag to compare
1.1.0-alpha Pre-release
Pre-release

Koko Analytics v1.1.0-alpha - Sep 29, 2023

TLDR: You need this if you want to run Koko Analytics Pro w/ custom event tracking.

  • Switch out Preact for the React version that is bundled with WordPress, reducing bundle size by 40 kB (or 30%).
  • Stop showing warning about WP Cron events not running if on local-ish environments.
  • Use the same Browserslist configuration as WordPress core.
  • Performance optimizations for fetching and parsing chart data.
  • Create optimized endpoint for retrieving the data for the totals component.
  • Settings page is now a server-side rendered page instead of a React component.
  • Improved CSS selector performance.
  • Add public PHP API. You can now call the following functions:
    • koko_analytics_get_most_viewed_posts() to get a list of the most viewed posts.
    • koko_analytics_get_realtime_pageview_count('-1 hour') to get the total number of pageviews in the last hour.
    • koko_analytics_track_pageview($post_id) to track a pageview to the post with ID $post_id

1.0.40

18 Sep 06:16
Compare
Choose a tag to compare

1.0.40 - Sep 14, 2023

  • Fallback to post slug if post has no title
  • Validate referrer URL and ignore if invalid
  • Delete optimized tracking endpoint if buffer filename changed and is no longer present in it. This fixes an issue when moving between servers
  • Always run database migrations when needed, regardless of current user role
  • Allow specifying multiple post types in KokoAnalytics\get_most_viewed_posts() and the [koko_analytics_most_viewed_posts] shortcode. Example: [koko_analytics_most_viewed_posts post_type="page,post"]
  • Limit attempts to install optimized tracking endpoint to once per hour
  • On the analytics dashboard, use the date format from WordPress settings
  • Translate day and month names (only relevant if using M, F, l or D in the date format string)
  • WP CLI command to manually run aggregation now accepts an optional --force flag. Example: wp koko-analytics aggregate --force
  • Don't show warning about WP Cron not working properly on sites on localhost, sites ending in .local and sites containing a port number
  • Last but certainly not least, some preparatory work for event tracking... Coming soon!

1.0.39

29 Aug 11:48
Compare
Choose a tag to compare

1.0.39 - Aug 29, 2023

  • Update referrer blocklist
  • Update third-party JS dependencies
  • Bump tested WordPress version

1.0.38

25 Apr 08:42
Compare
Choose a tag to compare

1.0.38 - Apr 25, 2023

  • Fix issue with dashboard widget rendering incorrectly when it was initially hidden.
  • Only render chart in dashboard widget when it is currently visible.

1.0.35

21 Oct 07:44
Compare
Choose a tag to compare

1.0.35 - Oct 21, 2022

  • You can now call koko_analytics.trackPageview( postId ) to manually track a pageview. This is especially useful for Single Page Applications.
  • Update referrer blocklist.
  • If referrer URL is on referrer blocklist, the entire request is now ignored (vs. just the referrer part).
  • Update JavaScript dependencies.

1.0.32

02 Jun 07:34
Compare
Choose a tag to compare

1.0.32 - Jun 2, 2022

  • Fix error in latest release by ensuring Endpoint_Installer class is always loaded when needed.

1.0.30

01 Jun 11:06
Compare
Choose a tag to compare

1.0.30 – Jun 1, 2022

Delete option koko_analytics_use_custom_endpoint on plugin uninstall.
Only load dashboard-widget.js if user has required capability for viewing stats.
Add constant KOKO_ANALYTICS_CUSTOM_ENDPOINT for [disabling the custom endpoint](https://github.com/ibericode/koko-analytics/blob/master/code-snippets/disable-custom-endpoint.php) entirely. This filter can also be used to [manually install the endpoint file to a different file location](https://github.com/ibericode/koko-analytics/blob/master/code-snippets/use-different-custom-endpoint.php).
Re-attempt installation of the custom endpoint file every hour. This also automatically re-tests whether the custom endpoint is still working as expected. The plugin already did this whenever you visited the dashboard page, but now it simply runs more often and without requiring you to log-in to your WordPress admin.

1.0.29

25 Jan 09:34
Compare
Choose a tag to compare

1.0.29 - Jan 25, 2022

  • Skip empty lines in buffer file to avoid a PHP notice in certain edge cases.
  • Make use of JS library for date presets.
  • Filter out user agents containing "preview".
  • Normalize referrer URl's for Yahoo search results.
  • Add class attribute to cron warning so it can be hidden using CSS by targeting .koko-analytics-cron-warning.

1.0.28

27 Sep 09:15
Compare
Choose a tag to compare

1.0.28 - Sep 27, 2021

  • Account for missing configuration object, for example if theme does not properly call wp_head().
  • Cast database result to integer types so we do not have to do it client-side.
  • Cache dashboard requests to REST API for 5 minutes (using browser cache).
  • Use integers for viewbox coordinates (for increased performance).
  • Simple locking mechanism for aggregation job to detect previous runs which are still busy.
  • Add WP CLI command for aggregating stats without having to go through WP Cron: wp koko-analytics aggregate