Please note: After extensive testing on numerous websites, the code has been updated to account for hyperlinks that contain tel: and mailto:. On a fairly large website in which I act as the technical owner/ administrator, it was recently mandated that all outbound hyperlinks (both new and existing) open in a new tab. Since we're not using WordPress and are unable to acquire IT resources to assist with an automated solution, I asked the team "how long will it take" to go through 700+ pages of … [Read more...] about Open External Links in New Tab Using GTM
Google Tag Manager Tutorials
I'm an early adopter of Google Tag Manager (GTM) and GTM version 2. Since I'm not finding very many resources for GTM tutorials I'm going to write them here based upon my experiences. This website is built on WordPress so many of my tutorials will be based upon WordPress and GTM. But having said that, I'm sure that anyone trying to accomplish something with GTM will find value in the tutorials I've published.
As always, if you need assistance with implementing GTM feel free to contact me.
In this GTM tutorial, we'll cover: Enable enhanced link attribution in Google Analytics Enable enhanced link attribution in GTM Show you a gotcha that might keep things from working properly View in-page analytics using your favorite browser Before we get started, let me show you why it's a good idea to enable and use enhanced link attribution. Why Use Enhanced Link Attribution? In the image below, you can see that GA is reporting 14% of the clicks go to "Learn More" and 14% of the … [Read more...] about Enhanced Link Attribution using Google Analytics & GTM
Not only is it very annoying for your website visitors to hit a 404 error page on your website, it can have a negative impact on your organic search performance. 404 error tracking should be a scheduled task performed at least once a month to keep a smooth running website. Using Google Tag Manager v2 and Google Analytics, I'm going to show you how to easily monitor visits to your error 404 page. The data we'll be capturing includes the page we couldn't find along with the referral information … [Read more...] about How to Track 404 Errors Using GTM v2