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
Web Analytics
Enhanced Link Attribution using Google Analytics & GTM
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
How to Track 404 Errors Using GTM v2
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