Tag: Google Tag Manager

Scroll tracking with Google Analytics 4 and Google Tag Manager
Google Tag Manager

Scroll tracking with Google Analytics 4 and Google Tag Manager

Compared to Universal Analytics, Google Analytics 4 offers more built-in tracking capabilities. This includes file downloads, outbound clicks, scroll tracking, and more. But did you know that the built-in scroll tracking in Google Analytics 4 tracks only when someone scrolls below the 90% percent mark of the page height? What if you want to track other thresholds as well (e.g. 25%, 50%, 75%)? Maybe in the future, that will also become built-in, but as of the moment of writing this blog post, it’s either 90% or nothing. In this blog post, I wanted to show you how to implement scroll tracking with Google Analytics 4 and Google Tag Manager. There are two possible approaches here and I’ll explain them both. Also, I’ll show several examples of the Analysis Hub report where you can see your scro...
Google Tag Manager

“Pages per Session” Conversion in Google Analytics 4

In Universal Analytics, conversions were called “goals” and there were several types of them that you could create: destination-based goal, event-based goal, session-duration-based, and a goal that counted based on the number of pages per session.When Google Analytics 4 was introduced, it was still pretty simple to recreate destination-based and event-based goals/conversions. But about the other two types?Currently, conversions based on session duration (e.g. if a session is longer than 5 minutes, that’s a conversion) would still require some additional code (or input from developers), thus it’s quite challenging (I’ve added this idea to my backlog of ideas for blog posts).But if you want to track conversion if a visitor views 3 or more pages per session, that is completely possible ...
How to Use Exploration Reports in Google Analytics 4
Google Tag Manager

How to Use Exploration Reports in Google Analytics 4

Compared to Universal Analytics, Google Analytics is missing a lot of predefined reports that we are familiar with (e.g. landing page, site search, etc.). I don’t know if this will change in the future, but I hope so!In the meantime, we got a pretty powerful suite of reporting capabilities called Analysis Hub. It’s the place where you can do ad-hoc analysis and dig deeper into your data. In today’s blog post, I wanted to focus on one particular part of it, Exploration Reports in Google Analytics 4. Table of contentsMain componentsVariablesSegments Dimensions and metricsTab settingsSegment comparisons Rows Columns Values FiltersThe Output (report)Examples of Exploration reports Landing pages report Order coupon code report Additional things ...
Google Tag Manager

Enhanced Measurement in Google Analytics 4: The Guide

When installed on a website (without any additional configurations), Universal Analytics (a.k.a. GA3) was tracking just page views. If you want to see any other interactions in your reports, you’d have to implement additional event tracking. To improve that, Google Analytics 4 offers more out-of-the-box interactions that are tracked without the need to change the website’s code or configure a GTM container. That suite of auto-tracking features is called Enhanced Measurement. Of course, you will still need to implement a bunch of recommended or custom events to get the most out of GA, but the enhanced measurement is a welcome addition for those who are just looking for very basics. However, there are some nuances as well (that I’ll also talk about). Table of Contents + Hide table of co...
Google Tag Manager

Track Clicks with Google Analytics 4 and GTM

If you are just starting to get a grip on Google Tag Manager, click tracking is probably one of the most demanded things you want to implement. There are many clickable elements on your website and you want to understand how website visitors are interacting with them.In this blog post, we will take a look at how to track clicks with Google Analytics 4 and Google Tag Manager.First, we will look at some automatic click-tracking capabilities in GA4, and then we will extend the list of tracked events with help of GTM.By the way, if you are completely new (or just starting) with Google Analytics 4, download my free e-book below.Ready? Let’s get started. Table of contents + Hide table of contents +Why track clicks? Automatic click tracking in GA4 (Enhanced Measurement) Track...
A Guide to DebugView in Google Analytics 4
Google Tag Manager

A Guide to DebugView in Google Analytics 4

When you implement something in Google Analytics (or any other platform), never trust your gut. Always verify that the data was actually received by the platform and is displayed in reports the way you expect it.In Universal Analytics, this was done by checking real-time reports (to verify events, conversions, page views). But if you wanted to debug things like Enhanced Ecommerce, you had to wait until the data lands in the standard reports. This means hours of delay between the configuration and the actual debugging.Luckily, that has changed in GA4 with a new feature called DebugView (I mean, it’s new if we compare to Universal Analytics). DebugView in Google Analytics 4 allows checking the incoming data at a more granular level (without the need to wait for hours).Table of Conte...
Recommended Events in Google Analytics 4
Google Tag Manager

Recommended Events in Google Analytics 4

There’s a lot to cover when it comes to event tracking in GA4. But since the platform is now event-based, it’s natural that I have a bunch of guides related just to events. In this quick guide, we’ll take a closer look at one group of events, recommended events. The list of recommended events (in alphabetical order) I presume that some of the visitors of this blog post are just looking for the full list of all recommended events in Google Analytics 4. If you’re one of them, then here it is. I have combined all lists from Google’s documentation into a single list. But if you want to learn the full picture of the recommended events, then jump to the next chapter and read/watch with great attention.add_payment_info (when a user submits their payment information).Parameters: coupon, curre...
A Guide to Custom Dimensions in Google Analytics 4
Google Tag Manager

A Guide to Custom Dimensions in Google Analytics 4

The thing with Google Analytics (or any other similar tool) is that it won’t help you much if you use it just “out of the box”. I’m talking about the classic “just add one line of JavaScript to your site and start tracking”. If you want to benefit from a platform, you have to customize your data collection.Every business is unique and you might want to track different things in order to understand how different parts are performing.And one of the ways how you can customize it is custom dimensions. Instead of just having some generic data, you can go really deep with your setup. Even though Google Analytics 4 offers better automatic tracking capabilities (compared to Universal Analytics), that’s not enough.In this blog post, I’ll show you how to configure Custom Dimensions in Google A...
Google Tag Manager

The Magic of Google Tag Manager and Cookies

Cookies are a super important part of the web. Imagine the world without them: you wouldn’t be able to use your Facebook or Twitter. They help retain data throughout a user’s visit on a webpage, so naturally, they’re an important component of web analytics, as well.By default, Google Analytics and other analytics tools use cookies in order to track users’ behavior on your website. Unfortunately, I still see many marketers (working with GTM) suffering over not being able to fire Tags for returning visitors, or after 4 page views, etc.But this shouldn’t be a problem since you can use Google Tag Manager to set and retrieve data from cookies in a fairly easy way. In this blog post, I’ll show you how to easily utilize cookies with Google Tag Manager and take your web tracking to the next le...
Google Tag Manager

How to check if Google Tag Manager is Working?

Google Tag Manager. The thing that makes the lives of marketers and web analysts easier. But the purpose of this blog post is not to convince you to start using it. Today, I assume that you have already decided to give Tag Manager a chance (or maybe even used it once or twice). In this blog post, I’ll show you how to check if Google Tag Manager is working properly.There are several ways to do so but keep in mind that these tips are not alternatives to each other. If possible, you should use them all or at least half of them.To check if Google Tag Manager is working, you need to complete the following steps:Check website’s source code (and use the “Search” feature) Enable the Preview and Debug mode. Did it appear? Is everything working? Check Google Tag Assistant Leverage S...
Google Tag Manager

Use Enhanced Ecommerce Data in Pinterest Tag with GTM

One of the reasons why I just love working with Google Tag Manager is the possibility to reuse data and send them to multiple marketing/analytics tools at once. In 2019, Simo Ahava posted an article that explains how to adapt Google Analytics Enhanced Ecommerce data and send it to Facebook Pixel.Later, I used his solution as a foundation for my guide, where I do the same thing with Google Analytics Standard Ecommerce. Today, I’ll use a similar principle to use Enhanced Ecommerce data in Pinterest Tag with Google Tag Manager.Table of contents + Show table of contents +A guide on how to implement Pinterest Pixel with GTM #1. Requirements #2. The process #3. Check the data in the Data Layer #4. Custom JavaScript variable that transforms EE product data #5. Data Layer...
Google Tag Manager

Implement Pinterest Tag with Google Tag Manager

When it comes to selecting tracking pixels, Pinterest (in most cases) will probably not reach the top 3. However, if you’re working in a business that’s related to fashion, style, Pinterest Tag might definitely be an option.I recently had my first serious encounter with the Pinterest Tag (because usually, people ask me to help with GA or Facebook Pixel), and … that was something. While it wasn’t terrible, it wasn’t great and streamlined either.Mainly, due to lacking documentation and other resources available online.After playing around with it, here are my findings on how to implement Pinterest Tag with Google Tag Manager.Note: if you notice any mistake, please let me know and I’ll fix it asap. There still might be some parts that I just missed.Table of contents + Show table...
Track Logins and Signups with Google Tag Manager and Google Analytics
Google Tag Manager

Track Logins and Signups with Google Tag Manager and Google Analytics

If your website or ecommerce store has a login feature (for your visitors/customers), you should definitely measure that. Since the tool of choice on my blog is Google Analytics, I’ll show you several options on how to track logins with Google Tag Manager and send it to Google Analytics. Oh, and let’s not forget signups too!Instead of trying to write some compelling introduction that should get you hooked, let’s get down the business and learn how to implement a login tracking setup. Table of contents + Show table of contents +A quick word about the User ID feature in Google Analytics Why should you track logins and signups? There is no silver bullet: the login/signup tracking method depends on your siteMethod #1. Using popular CMS? Check for GTM plugins Method #2. Track w...
Google Tag Manager

Track Many Forms with One Thank You Page with Google Tag Manager

Here’s a situation: you want to track form submissions on a website. There are multiple forms and they all redirect the visitor to the same “Thank you” page. The built-in Form Submission trigger in GTM is not working, thus you could try implementing the Thank you page tracking method. But how can you distinguish which form was submitted?In this guide, I’ll show several options on how to track many forms with one Thank you Page (in other words, that redirect the same ‘Thank you” page).Table of contents + Show table of contents +Option #1. Using the referrer variable Option #2. Working with a single page application? Use Trigger Groups Option #3. Another option for Single Page Applications Option #4. Store the info of the last submitted form in a cookie Option #5. Can you ...
Google Tag Manager

How To Install Google Tag Manager on WIX website

Updated: September 4th, 2020. I’m not going to dive into discussions about whether WIX is a good platform for creating a website, it has its pros and cons. For example, it enables people to easily create a website but at the same time, WIX is not the best tool in terms of SEO friendliness. Additionally, one of the most annoying things was that WIX did not support Google Tag Manager. From time to time I noticed threads on forums, Reddit, and elsewhere where people were trying to find the answer. No luck. Even though WIX supported Custom HTML widgets, they did not work with the GTM code inside of it. Luckily, those dark times are over because WIX recently released built-in support for GTM. Hooray! Today, I’ll show you how to easily install Google Tag Manager on the WIX website.     Quick Con...