analytics

Analyze Page Views with Redux

1 minute read Published

How to track metrics using Google Analytics and Redux for React.

If you’re looking to measure page view events in your Redux app – even if you’re not using the de facto community routers – I found an approach which can be modified to emit analytics events to a number of different providers with relative ease using a single middleware integration.

Add Google Analytics to Ghost with Cloudflare

3 minute read Published

Learn how to add Google Analytics to Ghost without writing any code.

Ghost is the new hotness in blogging. It has more than 5,000 backers on Kickstarter and has raised more than USD $300,000 in funding. But given its relatively new on the block, there’s not a lot in the way of tutorials or primers for getting started.

Looking at the world of analytics, there are a few tutorials on page one of Google which encourage users to customize Ghost themes. But customizing a theme is a hack and locks users into something I like to call a “customization corner”. Customizing in the way suggested makes it more difficult for users to switch themes later and increases the risk of functionality breakage when one theme is swapped out for another. Don’t do it.

Instead, consider adding analytics using a CDN like CloudFlare. Not only does adding analytics through a CDN prevent the need to customize Ghost, it’ll also speed up your blog at the same time and can be done without any coding. And the best part is, it can be done for free.

To add Google Analytics to Ghost with CloudFlare without customizing your theme or writing any code follow the steps below.