Kevinleary.net, LLC.

Blog

Sensible approaches to build and maintain custom WordPress websites.

Drift Event Tracking in Google Tag Manager

The drift documentation provides a different method, but it requires code level changes to your site. Drift is already sending custom events to Google Tag Managers dataLayer, so these JavaScript event handlers are not necessary anymore. It’s likely that Drift will likely update their documentation to reflect this approach if they haven’t already. Google Tag…

Images.weserv.nl Slow Loading

Images.weserv.nl is a an open-source image resizing and caching web API that’s used on millions of webites to optmize, resize and transform images on the fly. The images are served by CloudFlare’s CDN, providing a distributed worldwide cache for performance. Beginning November 2022 the service was rate limited by a change to CloudFlare’s terms of…

Remove Box Shadows From One Side with CSS

CSS’s native clip-path property makes it very easy to cutoff a box-shadow on one or more sides of an element. If you’ve ever wanted to use a box-shadow like a border, imagining something similar to box-shadow-top: none, then this is an ideal solution. There are many other more complex ways mentioned around the web for…

Custom Corporate Zoom Branding

Zoom allows organizations to control certain aspects of the conferencing UX, applying colors, typography, logos, background and more to completely brand the experience of joining a corporate conference call. I’ve had a few requests to do this, so I thought an explanation on how it’s done may be helpful. Live Example A live example can…

Apple News Fonts List

A list of fonts available for use in Apple News when working with the publisher API, including list of each font. More information can found in Apple’s official documentation: Applying Apple News Format Fonts

Custom Spam Rules for Gravity Forms

Gravity Forms is the most well known, and most used, form plugin available for WordPress. It’s a great tool, and one that I use on many of the sites I work on. Spam form submissions is an issue on just about any site with a publicly available web form. Many options exist to help deter…

Transactional Email Delivery in WordPress

WordPress provides a built-in function for delivering programmatic emails: wp_mail. Without any modification this function will send emails directly from your web-server, which will arrive directly into your recipient’s spam folder (most likely). Email spam is vicious, and spam filtering technology has to be strong and strict to protect your inbox. Any email delivered right…

Unique Pageviews in Google Analytics 4

The older universal analytics implementation of Google Analytics has a “Unique Pageviews” metrics is a commonly used performance metric for many websites. Unfortunately the concept of _Unique Pageviews_ has been removed entirely Google Analytics 4, the metric doesn’t exist at all. Here’s how to revive it and track unique pageviews in GA4.

Most Common Cause of a Slow WordPress Admin

A slow WordPress admin is the worst, it can significantly reduce publishing productivity, and it’s a big pain for anyone that works in the admin frequently. It can be caused by many things, but the most common and least discussed seems to be slow HTTP API responses from premium or paid plugins that require a…

Offline Conversion Tracking

Tracking important business actions that happen beyond your website or application is a critical step for businesses in a disruptive industry. It’s one of the best ways to reduce your CAC, which is a top focus of disruptive companies looking to rapidly grow in a slow moving industry. Event & Session Tracking Event tracking allows…

Custom Events in Google Tag Manager

Tracking custom analytics events provide a business with the ability to track specific customer actions online that are most valuable, rather than what an analytics platform prescribes as the most valuable. Implementing custom events in various systems can quickly become complex, so it’s a good idea to use a system like Google Tag Manager to…

Social Security Number Validation Rules (Regex)

If you’re building a web application or custom WordPress plugin that needs to validate a US Social Security Number (SSN) then the following approach will provide a way to validate user input without the use of any third-party verification API.

SVG Support & Broken Images

If your WordPress website has broken or missing SVG images and you have the SVG Support plugin installed your issue can be quickly solve with the following quick fix.

A Better Email Address Regular Expression

Over the years I’ve found that this regular expression provides just the right balance of loose and strict pattern recognition to safely be used as a method for validation an email address.

Loading additional posts…