Install Facebook Pixel through Google Tag Manager

Adding the Facebook Pixel through Google Tag Manager

For many companies, social traffic is very important. And there is one behemoth in the playground; Facebook. There are some great ways to use a Facebook Pixel in order to start measure conversions and optimize adverts you’re running on the platform. Not only that, the pixel allows you to create audiences for remarketing as well. That opens up for a really good targeting on Facebook for your audiences.

In order to start using the pixel you’ll have to create it using the Ads Manager.

Read More
Track Main Menu Clicks in Google Tag Manager

Track main menu usage on your site with GTM

A very common thing that I setup tracking for on a variety of pages for different companies is how their main menu is used across the site. The main menu is usually where most of your visitors will look at if the page they landed on didn’t really hit the mark. That’s if you’re lucky, otherwise they’ll just hit the back button at go back to what ever Google search that led them to you in the first place.

Sites usually invest some thought in the navigation and by that it’s of course important to measure how your site’s visitors will use it. In Google Analytics you can of course see how many of your visitors that looked at, say your Product Overview page. You can also see how many of them that came from, say the start page or a specific product page. But you can’t really see how many that used your sites navigation in order to from one page to another.

Luckily, you can set up tracking on that using Google Tag Manager in basically a few minutes.

Read More

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

Mall of Scandinavia, we need to talk about your SEO

It’s been a while since I bashed the Mall of Scandinavia website. When working in the SEO industry I come across a variety of odd implementations and ‘bad habits’ now and then, but nothing comes close to the abuse that this – the largest mall in northern Europe – has to endure.

I’m glad to see that they actually got their act together and started using some kind of tracking on their site. Turns out to be Google Analytics, which doesn’t really come as a big surprise.

It seems like the implementation is being done in France, due to the comment they left behind in the analytics tracking code on the site

(window,document,”script”,”//”,”ga”); ga(“create”, “UA-27904582-3”); // Remplacer par l’identifiant de votre propriété ID.

I’m so eager to find out who’s behind all this…

The thing is, I’m living close to the mall so me and my family tend to go there quite often. Once in a while we need to check up things before we go, like “do ‘this particular brand’ have a store there?“, which is just what happened this weekend.

Read More
Hotjar and Google Tag Manager

How to add Hotjar via Google Tag Manager

If you haven’t already heard about Hotjar, you should really take a look at it. The tool doesn’t only allow you to create heatmaps, but allows you to view things as scroll depth, create funnels and ask your visitor questions. And it also allows you to view recordings of visits to your pages, which is a feature I really love.

And since Hotjar requires you to add its script on the page, why not do it via Google Tag Manager? That is really the purpose of using a tag management system, right?

Once you have your account setup, you will get a tracking code that looks like the one below that you need to insert on all pages on your domain.

Read More
mall-of-scandinavia title tags

Mall of Scandinavia – Did you forget your site?

On the 12th of November 2015, the biggest Mall in Sweden will open up; Mall of Scandinavia. Just some 20 minutes walk from where I live. I had a look at their site today because I wanted to see if they had any information about stores and such, so that I knew before hand what to expect if I would go there.

Oh my, I shouldn’t.

This is a project that started back in 2008 (more than 7 years ago) and with an expected cost of somewhere in the range between 4 billion SEK ($460m) up to 5,8 billion SEK ($670m) depending on what source you’re looking at. One would expect that during these years someone would have thought something in the lines of “We need to invest some money into our digital presence as well, make it just as good as the mall itself!


Read More

Even Google fails


Most of us always rely on Google when it comes to translating bits and pieces of text, and one would assume that they had pretty solid knowledge on the different languages by now.

But sometimes, even Google fails.

I had to setup a brand new Google Account and had to do a quick keyword analysis for some terms for a client. The account name is with a Swedish email ending in .se and my information states that I’m a Swede as well. But since they wanted me to enter my credit card information (which I didn’t have at the time), I just closed the tab and logged in to another account where everything was already set up. Spent an hour or so doing research and didn’t think more about it.

Read More
Why use Google Analytics

Why you should use Google Analytics?

Many of us working in the industry know the importance of why you should track and measure the visitors engaging with your site. It’s in our core. We know the value.

This article is for all you people out there questioning why you should use Google Analytics on your business site or blog.

What are the pros and cons, what should you expect in terms of what you need to do as well as expected outcome.

First of all, I have to state that there are options to using Google Analytics, such as Adobe Analytics or Webtrends for businesses or simpler trackers such as Piwik or Open Web Analytics outlined by Contently.

I could go on for days (well, almost) talking about why, but if I had to boil it down to one answer, and one only it’d had to be:

Without knowledge about your performance, you have no idea on where to improve. Plus, it’s free!

That last part is a very important factor too. Looking at other web analytics tools as a business you might be in for a yearly fee reaching more than tens of thousands of dollars every year. Yes, even Google Analytics comes in a paid version for those of you that have a lot of traffic to your site and need that little extra. Expect to cough up an additional $150,000/year for Google Analytics Premium then. Yikes, that’s a lot. But needed for a lot of major companies out there.

Read More
Remove Query Strings with GTM

Remove URL query string via Google Tag Manager

A few days ago I was looking at the tracking for a hybrid iOS/Android app where the Apps appended a query string to the URLs in app. Given this, I had two versions of each URL in Google Analytics, looking something like this:


The first one is the URL that is being used on the desktop version of the site, no matter of you are browsing with a laptop, mobile phone or tablet. The latter one is the URL being used if you open the link from within the app on your phone.

An easier way of doing this is probably using rewrite filters in Google Analytics, but since I want to do most things in Google Tag Manager this is how I solved the issue, taking into account that we don’t want to get rid of the query string in its entirety but only that part.

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
Page 1 of 3123