45
votes
Accepted
How do I hide the Google Tag Manager preview pane?
From Previewing and Debugging in the Google Tag Manager help:
Exit preview mode
To exit preview mode from your container, click Leave Preview Mode, located in the orange banner on the ...
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 ...
6
votes
In Google Tag Manager, what is the difference between Click Target vs Click URL?
Click Target: The target attribute of the clicked element.
Click URL: The HREF attribute of the clicked element, if any.
Per the link provided.
For a click URL it's associated with the HREF ...
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 ...
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 ...
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 ...
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). ...
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 ...
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 ...
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 ...
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 ...
4
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 (...
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 ...
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 ...
3
votes
Accepted
How to Track outbound clicks in google analytics
Using GTM, you could establish a link click listener that fires on all pages, and then create an "Outbound link" tag to fire whenever a link is clicked. You can collect the href attribute of the link ...
3
votes
How can I scan my entire website and audit it for installed JavaScript tags?
If anyone ever comes across this same question, I found a strategy that helped me out. I used Screaming Frog and set up custom filters to contain the tags that were in my Analytics and Tag Manager ...
3
votes
Event tracking for Vimeo in Google Tag Manager
I do not use that plugin because it does not work with my other plugins. But I do track everything in GA and I deploy the video player through GTM.
This is the code I use in GTM
http://codepen.io/...
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, ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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() && !...
3
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 ...
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 ...
3
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-tag-manager × 314google-analytics × 226
analytics × 25
universal-analytics × 20
event-tracking × 20
javascript × 17
google × 14
google-ads × 13
seo × 11
tracking × 11
analytics-events × 11
wordpress × 10
goal-tracking × 10
tag-manager × 10
schema.org × 9
facebook × 9
json-ld × 9
forms × 7
performance × 5
cookie × 5
click-tracking × 5
enhanced-ecommerce × 5
ecommerce × 4
iframe × 4
page-views × 4