11 votes

Pagespeed Insights reports that Google Analytics is blocking main thread in page load

GA4 uses Google Tag Manager to load Google Analytics, which means a bigger hit to your site's performance. To minimize the performance impact, here are some things I did. Use preconnect Use preconnect ...
Patrick Kenny's user avatar
7 votes

How to disable a code in GTM from firing on homepage

Gael's answer is probably the best, but i just wanted to let you know that there's also a possibility of having the GTM container code, but not actually tracking the home page. In that case, you just ...
Mnea's user avatar
  • 335
6 votes

Why is my Google Tag Manager event expecting this `_event` value?

The Event Name matters We thought that the "Event Name" was just a human-readable label, but apparently it actually has to match what is sent by JS. Changing it to match what's sent by JavaScript (...
Nathan Long's user avatar
6 votes
Accepted

How do I add the an expires header for external URL components as suggested by GTmetrix and YSlow?

As @Evgeniy has already covered in his answer, in order to add HTTP response headers to resources external to your site, you need to copy these resources locally - to a server that you control - so ...
MrWhite's user avatar
  • 42.7k
6 votes
Accepted

Do I need to add the Google Tag Manager if I already have Google Analytics?

you can leave the global site tag tracking code snippet on your site, just do not also configure tags for GA pageview tracking within GTM. If it were me, I would remove the global site tag tracking ...
Bronwyn V's user avatar
  • 3,423
5 votes
Accepted

Google Tag Manager Multiple URL Exceptions not Working

When adding exception operations, there's a note above it: Fire this trigger when an Event occurs and all of these conditions are true You'll need to create two separate rules, each containing just ...
L Martin's user avatar
  • 4,003
5 votes

How to pass JavaScript errors to Google Analytics using Google Tag Manager

Yes, the article is not quite complete. Any trigger has to be matched with a tag, in this case a Universal Analytics Event tracking tag (I do not believe there is another appropriate way to send it). ...
Reve's user avatar
  • 2,031
5 votes

Do I need to add the Google Tag Manager if I already have Google Analytics?

You need to add your Google Tag Manager code in your website. Then, you have two options: Leave it, don't do anything else. Your Google Analytics code will remain as it is and FB Pixel will be added ...
Pablo Santamaria's user avatar
5 votes
Accepted

Verification of Google Search Console via Google Tag Manager

You have to check if the position of GTM code is exactly the same indicated by GTM guidelines. Concerning the error on Google Analytics it is returned to you because probably you haven't the GA ...
Michele Pisani's user avatar
5 votes

What region codes require GDPR compliance?

First, it's important to say I'm not a lawyer and this isn't legal advice. I found a GDPR Country List that seems to be from 2022. This list does not include region codes, so I am crosschecking it ...
Daniel Kaplan's user avatar
4 votes
Accepted

Google Tag Manager and AMP

I originally tried adding the GTM using Glue for Yoast SEO and it did track the pages. However, that resulted in 2 AMP validation errors: The proper way of implementing the tag as of right now is via ...
dasickle's user avatar
  • 3,658
4 votes
Accepted

Google Tag manager firing Facebook pixel calls with appspot redirect URL

I've had a number of agencies tell me that my FB pixels had inflated or false data for the past few months. After some digging around Google I think what everyone confirms as a fix is to exclude ...
Racingman's user avatar
4 votes

Why is Facebook Pixel firing the gtm.formSubmit event?

I just tried setting up the default form submission trigger in a client's GMB container and was having the same problem. After a little digging around in Preview mode, I came up with the following ...
Casey's user avatar
  • 41
4 votes
Accepted

In Google Tag Manager I have two Google Analytic tags, and want to know if my setup is correct

When Google Tag Manager is installed on a site (a script tag beginning function(w,d,s,l,i) and ending with your GTM container ID), it is not necessary to separately add Google Analytics tracking code ...
Reve's user avatar
  • 2,031
4 votes
Accepted

Events as Goals in Google Analytics for funnel visualization & flow

Of course, you can. It's as simple as creating the tags in Google Tag Manager and set up those events in Google Analytics as Goals. However, in this scenario, you can send the data to Analytics as ...
Emirodgar's user avatar
  • 3,817
4 votes

Make Google Tag Manager' tags GDPR compliant

//UPD: There has been Consent Mode feature in GTM in Beta for some time now, it may be good enough to use in production. https://developers.google.com/tag-platform/tag-manager/templates/consent-apis ...
BNazaruk's user avatar
  • 1,762
3 votes

More than 100 of subdomains to be tracked in Analytics using Google Tag Manager

Regarding the Property and View limit (50 and 25, respectively), there's no way around that, really, so you'll probably have to break up the sub-d's across several properties. So with that in mind, ...
nyuen's user avatar
  • 2,533
3 votes
Accepted

Migrating Google Analytics Code to Google Tag Manager

To migrate, I recommend adding the Google Tag Manager container to your website, then test that the pageview tag for Google Analytics is working in preview and debug mode. Once you are happy that ...
Kirsty Simms's user avatar
  • 1,257
3 votes
Accepted

How to add the Facebook Messenger Customer Chat Plugin to your site using Google Tag Manager

I discovered that GTM doesn't like something about the HTML (probably the page_id attribute). So, instead, the <div> needs to be created dynamically using JavaScript. This is the final code we ...
Simon East's user avatar
3 votes
Accepted

Do I have to delete google analytics & FB pixel code if I wanna implement google tag manager?

If you want to put your GA code and Facebook code in via tag manager, then yes, delete the old code, or you'll double count. But you don't have to - you can leave old tags on and just put new ones in ...
chester's user avatar
  • 106
3 votes

How to exclude my domain from referrals?

Have you looked at filters in the Admin section of Google analytics? You can create filters at the account level or view label. Choose the "exclude" filter for your domain name in "referral" field. ...
deltavin's user avatar
  • 346
3 votes

Can Tag Manager containers be moved to another account (owned by the same person)?

You can't move a container from one account to another but you can export a container and then import it into a new account. Take note of the fact though that it will be a new container with new ...
Agata - Business Ahead UK's user avatar
3 votes
Accepted

How can I track outbound links with Google Analytics?

First of all, you need to make sure you are using the same Analytics version tracking code. In your question, the main tracking code uses gtag.js but the event code is based on analytics.js. You ...
Emirodgar's user avatar
  • 3,817
3 votes

Google tag assistant reports: "Same web property ID is tracked twice"

Never rule out that a marketing team has created an invalid TAG in your GTM container that is causing this issue. I ran into a similar issue and was able to revert to an older version of the GTM ...
Oliver's user avatar
  • 31
3 votes
Accepted

Should each subdomain be its own property in Google Analytics?

There is no correct or wrong. It depends on how you want gather data, how many data is gathered, who has an access to which property and so on. Usually one makes a master property for the whole domain ...
Evgeniy's user avatar
  • 10.1k
3 votes
Accepted

How to disable a code in GTM from firing on homepage

The easyest way not to display Google Tag Manager on Homepage is to check with php. You can insert GTM in the header.php file of your child-theme like this: <?php if (!is_home() && !...
gael's user avatar
  • 1,050
3 votes

Pagespeed Insights reports that Google Analytics is blocking main thread in page load

I would definitely reccommend loading GTM async, chances are it would be loaded in less than a second anyway, so you won't miss many is any events. In Googles analytics documentation, they recommend ...
Conor Grocock's user avatar
3 votes

Can I use Google Analytics to implement offline conversion tracking?

I will start with the caveat that I know the Google Analytics / Google Tag Manager end of things, but am not familiar with Google Ads. However, there are only 4 types of goals in GA and only two of ...
Reve's user avatar
  • 2,031
3 votes

Can Google Analytics track visitor behavior?

The answer depends on (A) what you mean by "visitor behaviour" and (B) how much you are prepared to do in terms of adding to or drawing from what's available in Google Analytics 'out of the box'. GA ...
Lag's user avatar
  • 258
3 votes

How much Analytics/GTM tracking knowledge is reasonable to expect from a marketing specialist?

I started writing this a while ago but left off hoping someone with more experience in the consulting world would write. My perspective is from our internal staff and vendors we've worked with, but ...
Reve's user avatar
  • 2,031

Only top scored, non community-wiki answers of a minimum length are eligible