Find out how my dev blog reached 1 million page views
Tags: programming, blogging, blog
Published: 2019-06-09 06:14:40

---
title: Find out how my dev blog reached 1 million page views
published: true
description: In this post I will tell you how my developer blog reached 1 million page views. I share techniques, strategies and stats.
tags: programming, blogging, blog
canonical_url: https://codeshare.co.uk/blog/find-out-how-my-blog-reached-1-million-page-views/
---

In this post I will tell you how my blog reached 1 million page views.

![Google analytics stats](https://codeshare.co.uk/media/1503/2019-06-05-00_29_51-window.png)

## Where it all began

I began blogging for 3 main reasons:

1.  To create a personal brand for myself and help boost my career
2.  I wanted to share useful tips and tools that I had learned as a web developer
3.  I wanted to use [Umbraco CMS](https://umbraco.com) as a content editor instead of just as a developer

I only realised how useful having a blog could be when I listened to John Sonmez's book [Soft Skills](https://codeshare.co.uk/soft-skills). He tells you how important it is to have a personal brand. Whether you are looking to change jobs right now or not, you should be marketing yourself. As a developer, one of the best ways to do this is by having a blog. There is so much good advice in this book, I always recommend it to people. 

If you're like me and prefer to listen to the audio version of a book, it is also available on [Audible](https://codeshare.co.uk/audible). That's how I "read" it.

John's advice was so valuable to me. I started writing blog posts, trying to be helpful to others. Whenever I came across a problem and it was painful to solve, I would create a blog post about it to save other people from that pain and make it easier for them.

## My first lucky break

After about 4 or 5 months of creating articles and not many people reading them, I was inspired on my lunch break at work to write a post called [10 golden rules for becoming a better programmer.](https://codeshare.co.uk/blog/10-golden-rules-for-becoming-a-better-programmer/) I had heard that list style posts were popular and opinionated posts seemed to divide people so that people who liked it shared it and those who didn't like also shared it, even just to tell people that they disagreed with it. Anyway this post was a bit of a hit with the programming community. I put it on social sites like facebook, twitter and LinkedIn Groups. I also shared it on [Hacker News](https://news.ycombinator.com/) which was a good move because it stayed on the front page for most of the day. In one day that post got nearly 14,000 page views and within the space of a week it had around 25,000 page views.

![Google analytics stats](https://codeshare.co.uk/media/1504/2019-06-05-00_39_38-window.png)

Lots of people were linking to this post from their websites, sharing it on twitter, facebook and LinkedIn and even including it in their programming email newsletters. Because of this it helped my google SEO ranking a lot. Even though the traffic died back down after the first week, google was starting to send traffic to my site for this article and some of my other ones too.

## List posts do well

Following on from the success of my 10 golden rules post, I realised that list post do well, so I started to think of other posts I could write:

*   [10 tips for being outstanding in an interview](https://codeshare.co.uk/blog/10-tips-for-being-outstanding-in-an-interview/)
*   [10 FREE, highly useful, tools for web developers](https://codeshare.co.uk/blog/10-free-highly-useful-tools-for-web-developers/)

These posts generated quite a bit of traffic, but it was nothing like the traffic I saw from the 10 golden rules article. I wanted that feeling of excitement again. I was chasing it.

## I was driving the traffic manually

Because I wanted to see a lot of traffic to my website, I was sharing the articles everywhere. At the time, the most effective place to share them was in the LinkedIn groups. The .NET Developers group has 300k members. Even if people didn't like my post, they would comment on it and it would keep it at the top of the group, which sent traffic to my site when they clicked on it. This wasn't sustainable. People would get bored of seeing my articles at the top of these groups. I was pushing it down their throats. The traffic needed to be organic instead.

In the first year, only 7.9% of traffic to my website was organic and 62.1% was from Social sites.

![Google analytics stats](https://codeshare.co.uk/media/1495/2019-06-04-23_24_00-window.png)

I need to focus on creating good content that people want to search for, not gimmicky content of lists, or posts which polarised opinions.

*   [Why you should not write comments in your code.](https://codeshare.co.uk/blog/why-you-should-not-write-comments-in-your-code/)
*   [Please tell me you don't write if true equals true](https://codeshare.co.uk/blog/please-tell-me-you-dont-write-if-true-equals-true/)

They weren't useful to the reader, they just got people clicking through from reddit etc.

## Getting more technical

I started to write more tutorial based blog posts. Ones which helped solve a problem for people rather than just gave me the immediate page view numbers in Google Analytics.

In my second year of blogging, it was the more technical posts like these which did well:

*   [SHA 256 and SHA 512 hash examples](https://codeshare.co.uk/blog/sha-256-and-sha-512-hash-examples/)
*   [How to style the Google maps popup infowindow](https://codeshare.co.uk/blog/how-to-style-the-google-maps-popup-infowindow/)

They were solutions to problems I had myself and other people were searching for solutions too.

So in my second year of blogging, 56.8% of page views were from organic search.

![Google analytics stats](https://codeshare.co.uk/media/1496/2019-06-04-23_37_17-window.png)

## Be consistent

John Sonmez said if you are going to write a blog, you need to create at least one post per week, be consistent with it, have a regular day when your posts are released. This helps to create a following. 

I would say I was more prolific than consistent, but regular posts of at least one per week really helped when it came to organic search. 

This chart shows you the organic traffic from the beginning until June 1st 2019 (3.5 years)

![Google analytics stats](https://codeshare.co.uk/media/1497/2019-06-04-23_44_22-window.png)

## A redesign and a move to https

In early 2018 I changed the site to run over https, I was worried about messing it up and losing all of my organic traffic, but luckily I had put the correct rewrite rules in place to redirect the traffic to the https route. 

I also dropped the www. off the front of the address to make it a shorter url. I was already having to put the redirects in place, I may as well take this opportunity whilst I'm at it.

My site was looking very bootstrap and not very modern. I wanted to buy a new premium theme that would look more professional so I did some research and found that [Creative Tim](https://codeshare.co.uk/creative-tim) made the best looking premium bootstrap websites. I had to pay about $50 for the theme but it was worth it. 

I don't know which of the above things was responsible, but my organic traffic just kept growing and growing from then onwards. See from 2018 onwards on the above chart.

## Don't go changing

I daren't change anything at the moment. SEO seems to be working perfectly for me. I only include the meta description and meta keywords. I don't implement schema.org or anything.

I've just carried on writing posts to help people overcome errors that I was experiencing, such as:

*   [How to solve the GitHub error fatal: HttpRequestException encountered](https://codeshare.co.uk/blog/how-to-solve-the-github-error-fatal-httprequestexception-encountered/)
*   [How to fix Font Awesome WebFont woff2 not found](https://codeshare.co.uk/blog/how-to-fix-font-awesome-webfont-woff2-not-found/)

I must be doing something right with these posts because google loves my site at the moment.

Here is a view of the last 3 months in Google Search Console

![Google analytics stats](https://codeshare.co.uk/media/1499/2019-06-05-00_03_40-window.png)

## My top 10 pages

![Google analytics stats](https://codeshare.co.uk/media/1501/2019-06-05-00_20_49-window.png)

## Summary

The main things that have helped my website get to 1 million page views are:

*   Don't give up
*   Be consistent
*   Solve other people's problems
*   Serve the site over https
*   Have a decent premium theme
*   Name the posts by what people would search for to find them
*   Use a decent content management system like [Umbraco](https://umbraco.com)

## A dinosaur ending

3 years ago, I wrote a post and made a video on [How to find the hidden dinosaur game in Google Chrome](https://codeshare.co.uk/blog/how-to-find-the-hidden-dinosaur-game-in-google-chrome/). It was mildly popular at first but it soon died off. Just recently I have noticed it being a popular page again on my site. Here's the traffic for the post:

![Google analytics stats](https://codeshare.co.uk/media/1500/2019-06-05-00_15_37-window.png)