Skip to content
duane blake

Latest posts

~/posts
~/code/front-end ·

How to find website most traffic by day of the week and time of the day using Google Analytics

We had a situation at work where we wanted to launch a campaign. We wanted to find out when was the busiest day and what time was the busiest. Doing this with the out of the box reports in Google Analytics is difficult as there no way to create this report. The best way to…

~/code/front-end ·

Restrict access to a website to only certain IP addresses

When building a new website there is a number of ways in which you can allow the user to see the site before launch. The way in which I tend to prefer is once the site is live give the client the a record and request them to change there host file so they can…

~/code/front-end ·

How to write a password strength indicator in Vue.js

My current place of work like most site has a password strength indicator. The requirements for the password is it has to be longer than seven characters, a capital letter, a special character and a number. All these requirements are currently hidden behind a tooltip. Which isn’t ideal for the user experience. An approach I…

~/code/wordpress ·

How to add author information from WordPress into Google Analytics

Google Analytics is a valuable tool for any website it provide a great way to have insights in how users browse and discover your website. With a little bit of effort it possible to get more out Analytics in this guide we show how to add WordPress authors on blog post into Google Anayltics.

~/code/front-end ·

JavaScript currency conversion tool using fetch

This is a quick tutorial how to use the fetch command in Javascript to write a currency conversion tools. Using the excellent Api from fixer.io which will get the daily exchange rate.

~/code/front-end ·

Using npm instead of Gulp to compile Sass

I’m a big fan of Gulp, I’ve been using it for over two years recently I found myself using NPM scripts for my Javascript Applications. So I decided to see if it possible for me to use NPM also to compile my sass files.

~/code/front-end ·

System notification in Gulp using Notify and Plumber

A bugbear when I first started using Gulp instead of using Compass for compiling my stylesheets. Was Gulp would just crashed and you had to restart gulp to get it back running. In this guide i’m going to show you how to prevent this along side showing a system notification for when it errors and…

~/code/wordpress ·

Troubleshooting the fatal WordPress white screen

Getting the white screen of death or any other error messages on your WordPress site can be a nightmare to fix but don’t panic. A lot of the time it can be easier as updating plugin. I’m going to write some of my personal steps. I use to resolve this issue.

~/code/laravel ·

Using Rollbar with Laravel and Laravel Envoyer

I stumbled across a great application called Rollbar which logs application error in a variety of languages such as Php, Perl, Javascript and Ruby to name but a few. It also has integration with Trello, Slack and Github.