44

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 Workspace Overview page. For shared previews, use the link received to go to the shared preview landing page. Click on Exit preview and debug mode to end your ...


7

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 need to create a trigger, that would look like in the image attached.


6

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 you can send the HTTP response header as part of the HTTP response. However, whether you should do this or not is another matter and each instance should be ...


6

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 code snippet and configure tags for GA tracking within the google tag manager container. Bit of extra information: Both Tag Manager and gtag.js perform ...


5

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 attribute of the clicked element or the link's destination. For the click target, its associated with the target attribute of the clicked element or specifies where ...


5

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 onePage URL operation. Then add both rules to the list of exceptions.


5

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). Ours had the following values: Category: JavaScript Error Action: {{Error Message}} Label: {{Error Line}}: {{Error URL}} I say "had" because we have ...


5

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 via Google Tag Manager. Alternatively, you can remove the code for Google Analytics from your website and add a tag in Google Tag Manager https://support....


4

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 amp-pixel or amp-analytics. I used amp-analytics tag myself. First you would add this in the head: <script async custom-element="amp-analytics" src="...


4

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 traffic from that domain. Simply put GTM renders an iFrame for non-javascript traffic. That iFrame is triggering the FB pixel and inflating the traffic. Wrap your ...


4

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 (dataLayer.push({'event': 'successful_signup'})) got it working.


4

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 solution: Create a second Form Submission trigger and select "Some Forms" under "This trigger fires on". Then set it to fire on submissions where the Click URL ...


3

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 to pass into your event as well. That's it in a nutshell, but there's more details here if you like: http://cutroni.com/blog/2013/10/07/auto-event-tracking-with-...


3

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 accounts. Then I just crawled my website and it returned all the pages that contained the tags that I set up.


3

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/JaminQuimby/pen/yNaOwz I use the built in listeners in Vimeo, Ads, VAST Client to listen in on events I wish to capture. Example expanding to full screen mode. ...


3

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, you could have one GTM container across all sub-d's, and then use a lookup table to determine which data from which sub-d's go into which property. Within the ...


3

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 this is functioning correctly, you can remove the Google Analytics container and activate the pageview tag in Google Tag Manager. If you are concerned about ...


3

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 used: <!-- FACEBOOK MESSENGER CHAT BOX --> <script> // We create the DIV dynamically to work correctly with Tag Manager var chatDiv = document....


3

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 tag manager if that's what you want. Though you have a lot more flexibility and functionality by putting those tags in tag manager


3

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. Keep in mind that it will apply the filter for the data it collects from that point on, not on the existing data retroactively.


3

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 should use -as it's newest- gtag.js. So, the code to use would be: var trackOutboundLink = function(url) { gtag('event', 'clic', { 'event_category': '...


3

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() && !is_front_page()) { echo 'your GTM code here'; } ?> Will display GTM everywhere but on home (blog posts homepage) nor on front page (the static page you ...


3

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 to the site. If the Custom HTML tag you describe is only sending pageview hits to GA, you can replace it with a Universal Analytics tag of type Pageview, with ...


3

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 events or virtual pageviews. As events, you can check them in the event's report and as virtual pageviews, you can work with them as usual URLs inside Analytics. ...


3

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 them can be adapted to multiple situations. The first option is a Destination goal. You would need to be able to add a URL query parameter to the pageload after ...


3

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 will track some visitor behaviour 'out of the box'. E.g. the pages the user visits, when they visited those pages, the source/medium of the session, and so on. ...


3

You may try Google Analytics, link here Under Behaviour → Behaviour Flow You may try Mouseflow, try this


2

I have not used Tag Manager but I suspect the issue is caused by the ? at the end of you URL. My suggested solution would be to escape this so your URL will look like this: /secure/common/callback\? You may also want to investigate if you can use regex with your rules to make the above more accurate.


2

You could add data-attributes to your ad link if you are using HTML5: <a href="example.com" class="someclass" data-adposition="Banner Ad - Top" data-adnamesize="Ad Title - (588x88)" data-advalue="1.00" ><img src="example.com/ads/ad_588x88.jpg" alt=""></a> Then add a new ...


2

Although an old question, in case someone is looking for the answer: Simply replace the div with the clicked element of choice (span,p,li,etc.).


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