dataLayer

How to use Content Grouping with WordPress and Google Analytics

How to setup Content Grouping in Google Analytics for your WordPress site

Content Grouping in Google Analytics is a really powerful feature that allows you group your pages according to your own definition in order to analyse them properly. There are a lot of people out there using WordPress as a platform and today we’re going to define our Content Groups and make sure that we send all the data we need to Google Analytics using, well… Google Tag Manager of course.

What we want to achieve is basically to look at data in Google Analytics based on what kind of page type being display, such as:

  • Front Page
  • Blog Post
  • Author Page
  • Category Page
  • Etc

Have a look at this video about Content Grouping by the Google Analytics team to get an even better idea of the usages of this very nice to have feature.

But as with almost everything i Google Analytics, nothing comes for free, so grab a cup of coffee and let’s get this show on the run!

Read More

Measure how many of your visitors that are using Adblock

!!! POST UPDATED 2016-09-28 – With new screenshots adapted for the newest version of Google Tag Manager !!! 

More and more people are using some kind of Adblock in order to minimize the amount of ads they see online. According to a recent studie released by Pagefair shows that there are now 198 million active adblock users in the world.

The same study shows that ad blocking grew with 41% globally in the last 12 months.

I started doing some data collection based on this before summer, because people started talking a lot about it back then. I now have data enough (yea, I could blame vacation time too) to draw some conclusions based on it, but also share my implementation with you guys.

Are you interested in knowing how many of your visitors that are using any kind of adblocker while visiting your site?

Even though you maybe not are showing ads on your own site, there is a big chance that you are doing advertisement on other sites, and it is always good to know if your target audience are receiving your ads at all, or not.

Read More

Remove logged in userdata from WordPress via Google Tag Manager

When you are working with any kind of data, one important thing is to keep it as clean as possible from data that really doesn’t matter. Or that could twist the important data around for that matter.

No matter what kind of web analytics tool you are using, you should always make sure to exclude your own data. Reason being that what you do on your own site usually differs a lot from what your actual visitors are doing.

Today we’re going to follow up on my previous post where we installed Google Tag Manager to collect data on a site. The next natural step is making sure we clean up our own data from the collection.

Read More