google tag manager – GTM – Bad Event Tracking Code – Pageview Hit must precede event

I’m having trouble finding a GTM error. The error states that Google Tag Manager isn’t receiving the URL/page-name in Google’s Behavior->Landing Pages report before it receives an event.

I’m not sure how to find the offending page and of course, Google can’t tell me the offending page, so trying to use Google’s Tag Assistant would mean testing every single page on the website.

The error appears to be happening on all of the major browsers, so it doesn’t seem to be browser specific.

I tried to lookup one session by matching the session duration with user sessions. The session begins at 11:58 pm and ends at 12:04 am. However, when I use Google’s Tag Assistant, it doesn’t show any errors.

enter image description here

If this were the problem page, it would appear that GTM looses the page name when the session wraps over the midnight hour, but this seems improbable.

enter image description here

How can I properly identify the offending page without using Google Tag Assistant on every single page?

google analytics – GTM event in database is selected by debug console but does not fire tags

I work on the maisonfribourg.ch website which was developed using grav.

I am trying to track form submissions using GTM.
In the attached image, you will see a blue button, clicking on it, a popup window will appear: Screen capture showing the .

The developer indicates that the site uses dataLayer.push to include the following in the data layer:
requestFile: open
requestFile: sent

These elements respectively follow the opening and sending of a contact form.
I'll start by describing how I try to follow the OPENING of the form.
I want to follow these two actions using GTM, I created a variable named & # 39; requestFile & # 39; so that GTM knows that this is something that interests me.
The variables and triggers that I have created

I created a trigger, based on a custom event
Finally, I created a tag for that
Here is a picture of the final result
The debug console shows that the custom event is pushed into the data layer

So I think the debug console shows that a data layer element exists, but somehow no tag is triggered, not even that of Universal Analytics.

What am I missing? Did I misconfigure something?

Thanks in advance for your help

GTM and ActiveCampaign Site Tracking – sending emails via dataLayer

My goal is to be able to integrate ActiveCampaign Site Tracking with GTM, however, AC Site tracking requires the email address to identify a user.

Is it possible to simply add email via dataLayer for AC? will this not affect PII rules?

google analytics – How to configure a custom dimension with GA + GTM to distinguish pages with and without buttons

GOAL

Hi everyone reading this. Using Google Analytics and Google Tag Manager, the goal I'm trying to achieve is to configure a custom dimension that would distinguish between pages containing buttons and pages that do not contain buttons, as shown in the sample table below.

sample table

This would let me know that a page like PAGE B has no clicks on buttons because there are no buttons and only a page like PAGE D has no click on the button as there is something that needs to be fixed or improved.

ATTEMPTS TAKEN TO ACHIEVE THE OBJECTIVE

In Google Analytics

  1. A custom dimension has been created: scope hit , active Yes, and the index number of 1 was noted.

In Google Tag Manager

  1. A variable named "Button visibility" has been created: type of variable visibility of elements, item selector buybtn (button class), output type right wrong, minimum visible percentage 50, format value convert true to yes, convert false to no.

    1. The Google Analytics Settings variable has been changed to have a custom dimension with an index number 1 and the dimension value {{Visibility of buttons}}

Additional information

There are other tags and triggers that have been configured and are working properly as the daily button click events are tracked by GTM and reported by GA, which means that the buttons enter the window of the user, but for some reason, when viewing GA and choosing the custom dimension, there is no data and when previewing the website via GTM, the button visibility variable is zero , even if several buttons are present in the window. I have also tried to change the scope in session, but no tracking occurs and the visibility of button variables remains zero.

SOLUTION

If you have suggestions on how to fix this, preferably without using the data layer, or if you can point me in the right direction via tutorials, I would appreciate your support.

google analytics – How can I get the value of a drop down menu outside of a form submission with GTM?

I have two drop-down lists on my site, one to choose a region and one to choose a city. The two drop-down lists are not in a form. I want to be able to capture the user selection of the values ​​of the two drodowns with GTM and display the results in GA.

All of the documents I found online all explain how to do it in a submission form and will not work in my case. Ideas?

Google Analytics / GTM sometimes follows the same page lookup twice but with a slightly different host name

We use Google Tag Manager (GTM) to send pageviews and other data to Google Analytics. I am currently cleaning our GTM container to make sure the data is sent accurately. I encounter a problem that even if I only trigger a page view tag, sometimes (this is not every time), I see two records for the same page view (although I know that I only viewed the page once in the tests). A page view view has the host name "www.mysite.com" and the other page record has the hostname "mysite.com". Has anyone else had this problem and can give me an idea of ​​why this might happen?

google tag manager – How does GTM know how to send enhanced ecommerce data when it's added to the data layer?

I am asking this question to better understand how GTM works, hoping to debug it myself. But a better title could be:

I wish the enhanced e-commerce works "simply" when I apply the data layer. What am I doing wrong?

In the old days, I've implemented GTM's enhanced e-commerce dataLayer on
Magento 1
. As Magento is rendered on the server, the dataLayer The JS table already contains products / impressions / conversions / etc. at the time of loading the page. In these scenarios, I could simply:

  1. Adding a Universal Analytics Tag "Page View" in GTM
  2. Check the boxes "Enable Enhanced Ecommerce Features" and "Use Data Layer"
  3. Have fire on "All Pages Page View",

This is sufficient for GTM to automatically call the enhanced e-commerce features that transmit this data to Analytics.

I say carMagically because I realize now that I took for granted the way it worked. I'm now implementing this for a client-side site, where the dataLayer It's filled only long after the page loads. I had to add GTM tags (user agent with type = Event) and trigger the triggering of these tags when specific events are pushed to the dataLayer.

Conversion / purchase tracking works, but for some reason impressions are not pushed. GTM indicates that the tag is enabled and I see an HTTP request to send the UA event (a t=event), but no impression data is present in the request.

Ideally, I could add only one tag and GTM called the appropriate Analytics function whenever new product data / details / impressions / addToCart / buy were sent to the dataLayer layer – from the same way that it behaves when the dataLayer layer is pre-populated on the page. loading time.

Is it even possible to run GTM this way? Or maybe I just do not understand how it's supposed to work.

html – What is the optimal order of meta tags, including GA and GTM?

I was reading the answer provided in this article and wanted to know what would be the order in optimizing meta tags. I've also added Google Tag Manager and Google Analytics scripts into the head tag as requested by Google.

This is what I have so far (everything that happens with the head label):

  1. Google Tag Manager Script
  2. Google Analytics global site tag (also a script)
  3. </code></li> <li>Link to the style sheet</li> <li>Awesome font style sheet link</li> <li>Google Fonts style sheet</li> <li>My custom CSS</li> </ol> <p>Where should I add my meta description tags and meta keywords?</p> </p></div> <div data-id="RFR1P121211" class="rating_form_wrap rating_form_1"> <script type="text/javascript">jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":1,"post_id":121211,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1$s\/%2$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR1P121211\"]").html(data); }});});</script><div class="rf_rich_snippet"> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://newproxylists.com/html-what-is-the-optimal-order-of-meta-tags-including-ga-and-gtm/" }, "headline": "html - What is the optimal order of meta tags, including GA and GTM?", "url": "https://newproxylists.com/html-what-is-the-optimal-order-of-meta-tags-including-ga-and-gtm/", "author": { "@type": "Person", "name":"Admin" }, "publisher": { "@type": "Organization", "name": "New and Fresh Private + Public Proxies Lists Everyday!", "logo": { "@type": "ImageObject", "url": " ", "width": "", "height": "" } }, "datePublished": "2019-07-31T06:47:57+03:00", "dateModified": "2019-07-31T06:47:57+03:00", "aggregateRating": { "@type": "AggregateRating", "bestRating": "5", "worstRating": "1", "ratingValue": "5", "ratingCount": "139" } } </script> </div></div> </div><!-- .entry-content --> <footer class="entry-footer"> <span class="byline"><span class="author vcard"><img alt='' src='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=49&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=98&d=mm&r=g 2x' class='avatar avatar-49 photo' height='49' width='49' /><span class="screen-reader-text">Author </span> <a class="url fn n" href="https://newproxylists.com/author/admin/">Admin</a></span></span><span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://newproxylists.com/html-what-is-the-optimal-order-of-meta-tags-including-ga-and-gtm/" rel="bookmark"><time class="entry-date published updated" datetime="2019-07-31T06:47:57+03:00">July 31, 2019</time></a></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://newproxylists.com/tag/gtm/" rel="tag">GTM</a>, <a href="https://newproxylists.com/tag/html/" rel="tag">HTML</a>, <a href="https://newproxylists.com/tag/including/" rel="tag">including</a>, <a href="https://newproxylists.com/tag/meta/" rel="tag">Meta</a>, <a href="https://newproxylists.com/tag/optimal/" rel="tag">Optimal</a>, <a href="https://newproxylists.com/tag/order/" rel="tag">order</a>, <a href="https://newproxylists.com/tag/tags/" rel="tag">tags</a></span> </footer><!-- .entry-footer --> </article><!-- #post-121211 --> <article id="post-117719" class="post-117719 post type-post status-publish format-standard hentry category-news tag-add tag-file tag-force tag-gtm tag-html tag-tag"> <header class="entry-header"> <h2 class="entry-title"><a href="https://newproxylists.com/html-how-to-force-gtm-to-add-a-tag-in-the-file/" rel="bookmark">html – How to force GTM to add a tag in the file?</a></h2> </header><!-- .entry-header --> <div class="entry-content"> <div itemprop="text"> <p>I've followed the steps below to add an AdSense script in my website:</p> <ol> <li>Now that you have the code, go to GTM.</li> <li>Create a new tag.</li> <li>Give a name.</li> <li>Select Custom HTML as the tag template.</li> <li>Copy and paste the code into the text field.</li> <li>Set the trigger to fire on any page or page on which you want to show ads.</li> <li>Click Save and submit to send the code live.</li> </ol> <p>I did it and everything is fine. Here is my complete code: (set as a tag in the Google Tag Manager)</p> <pre><code><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> </script> </code></pre> <h2>The problem is:</h2> <p>The script above will be added to the dom separately. I mean, this part:</p> <pre><code><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> </code></pre> <p>add to the <code><head></code> section, and this part:</p> <pre><code><script> </script> </code></pre> <p>add to the <code><body data-rsssl=1></code> section. Google AdSense declares:</p> <blockquote> <p>The code is missing or incomplete</p> </blockquote> <p>Any idea of ​​how I can force GTM to add the two scripts one after the other <code><head></code> section?</p> </p></div> <div data-id="RFR1P117719" class="rating_form_wrap rating_form_1"> <script type="text/javascript">jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":1,"post_id":117719,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1$s\/%2$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR1P117719\"]").html(data); }});});</script><div class="rf_rich_snippet"> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://newproxylists.com/html-how-to-force-gtm-to-add-a-tag-in-the-file/" }, "headline": "html - How to force GTM to add a tag in the file?", "url": "https://newproxylists.com/html-how-to-force-gtm-to-add-a-tag-in-the-file/", "author": { "@type": "Person", "name":"Admin" }, "publisher": { "@type": "Organization", "name": "New and Fresh Private + Public Proxies Lists Everyday!", "logo": { "@type": "ImageObject", "url": " ", "width": "", "height": "" } }, "datePublished": "2019-07-22T07:57:36+03:00", "dateModified": "2019-07-22T07:57:36+03:00", "aggregateRating": { "@type": "AggregateRating", "bestRating": "5", "worstRating": "1", "ratingValue": "5", "ratingCount": "139" } } </script> </div></div> </div><!-- .entry-content --> <footer class="entry-footer"> <span class="byline"><span class="author vcard"><img alt='' src='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=49&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=98&d=mm&r=g 2x' class='avatar avatar-49 photo' height='49' width='49' /><span class="screen-reader-text">Author </span> <a class="url fn n" href="https://newproxylists.com/author/admin/">Admin</a></span></span><span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://newproxylists.com/html-how-to-force-gtm-to-add-a-tag-in-the-file/" rel="bookmark"><time class="entry-date published updated" datetime="2019-07-22T07:57:36+03:00">July 22, 2019</time></a></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://newproxylists.com/tag/add/" rel="tag">add</a>, <a href="https://newproxylists.com/tag/file/" rel="tag">file</a>, <a href="https://newproxylists.com/tag/force/" rel="tag">Force</a>, <a href="https://newproxylists.com/tag/gtm/" rel="tag">GTM</a>, <a href="https://newproxylists.com/tag/html/" rel="tag">HTML</a>, <a href="https://newproxylists.com/tag/tag/" rel="tag">Tag</a></span> </footer><!-- .entry-footer --> </article><!-- #post-117719 --> <article id="post-113621" class="post-113621 post type-post status-publish format-standard hentry category-news tag-code tag-disable tag-gtm tag-home tag-page tag-trigger tag-wordpress"> <header class="entry-header"> <h2 class="entry-title"><a href="https://newproxylists.com/wordpress-how-to-disable-a-code-in-gtm-trigger-on-the-home-page/" rel="bookmark">wordpress – How to disable a code in GTM trigger on the home page</a></h2> </header><!-- .entry-header --> <div class="entry-content"> <div itemprop="text"> <p>The easiest way to not display Google Tag Manager on the home page is to check with php.</p> <p>You can insert GTM into the <code>header.php</code> folder of your <code>child theme</code> like that:</p> <pre><code><?php if (!is_home() && !is_front_page()) { echo 'your GTM code here'; } ?> </code></pre> <p>GTM displays everywhere except on the homepage (home page of blog posts), nor on the homepage (the static page that you may have defined as being the home of your wordpress).</p> <p>Then, if you want it on the product pages, the possibilities are many because there are many types of product pages (category page, single product page …).</p> <p>But if you want to display it only on a few types of product pages, you can choose to display it only if it is the correct type of page.</p> <pre><code><?php if (is_product()) { echo 'your GTM code here'; } ?> </code></pre> <p>You'll find the woocommerce conditional tags here: https://docs.woocommerce.com/document/conditional-tags/ where you can choose what condition you want your GTM to display or not.</p> </p></div> <div data-id="RFR1P113621" class="rating_form_wrap rating_form_1"> <script type="text/javascript">jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":1,"post_id":113621,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1$s\/%2$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR1P113621\"]").html(data); }});});</script><div class="rf_rich_snippet"> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://newproxylists.com/wordpress-how-to-disable-a-code-in-gtm-trigger-on-the-home-page/" }, "headline": "wordpress - How to disable a code in GTM trigger on the home page", "url": "https://newproxylists.com/wordpress-how-to-disable-a-code-in-gtm-trigger-on-the-home-page/", "author": { "@type": "Person", "name":"Admin" }, "publisher": { "@type": "Organization", "name": "New and Fresh Private + Public Proxies Lists Everyday!", "logo": { "@type": "ImageObject", "url": " ", "width": "", "height": "" } }, "datePublished": "2019-07-11T10:35:17+03:00", "dateModified": "2019-07-11T10:35:17+03:00", "aggregateRating": { "@type": "AggregateRating", "bestRating": "5", "worstRating": "1", "ratingValue": "5", "ratingCount": "139" } } </script> </div></div> </div><!-- .entry-content --> <footer class="entry-footer"> <span class="byline"><span class="author vcard"><img alt='' src='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=49&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/bd9c1c3481678fcfdec7c292553dd5c7?s=98&d=mm&r=g 2x' class='avatar avatar-49 photo' height='49' width='49' /><span class="screen-reader-text">Author </span> <a class="url fn n" href="https://newproxylists.com/author/admin/">Admin</a></span></span><span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://newproxylists.com/wordpress-how-to-disable-a-code-in-gtm-trigger-on-the-home-page/" rel="bookmark"><time class="entry-date published updated" datetime="2019-07-11T10:35:17+03:00">July 11, 2019</time></a></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://newproxylists.com/tag/code/" rel="tag">code</a>, <a href="https://newproxylists.com/tag/disable/" rel="tag">disable</a>, <a href="https://newproxylists.com/tag/gtm/" rel="tag">GTM</a>, <a href="https://newproxylists.com/tag/home/" rel="tag">home</a>, <a href="https://newproxylists.com/tag/page/" rel="tag">page</a>, <a href="https://newproxylists.com/tag/trigger/" rel="tag">trigger</a>, <a href="https://newproxylists.com/tag/wordpress/" rel="tag">Wordpress</a></span> </footer><!-- .entry-footer --> </article><!-- #post-113621 --> <nav class="navigation pagination" role="navigation" aria-label="Posts"> <h2 class="screen-reader-text">Posts navigation</h2> <div class="nav-links"><span aria-current="page" class="page-numbers current"><span class="meta-nav screen-reader-text">Page </span>1</span> <a class="page-numbers" href="https://newproxylists.com/tag/gtm/page/2/"><span class="meta-nav screen-reader-text">Page </span>2</a> <a class="next page-numbers" href="https://newproxylists.com/tag/gtm/page/2/">Next page</a></div> </nav> </main><!-- .site-main --> </div><!-- .content-area --> </div><!-- .site-content --> <footer id="colophon" class="site-footer" role="contentinfo"> <nav class="main-navigation" role="navigation" aria-label="Footer Primary Menu"> </nav><!-- .main-navigation --> <div class="site-info"> <span class="site-title"><a href="https://newproxylists.com/" rel="home">New and Fresh Private + Public Proxies Lists Everyday!</a></span> <a href="https://wordpress.org/" class="imprint"> Proudly powered by WordPress </a> </div><!-- .site-info --> </footer><!-- .site-footer --> </div><!-- .site-inner --> </div><!-- .site --> <div style="height: 1px; width: 1px; border: 0px solid #232323; font: 16px/26px Georgia, Garamond, Serif; overflow: auto; background-color: #232323;"> <a href="https://dreamproxies.com/">DreamProxies - Cheapest USA Elite Private Proxies</a> <a href="https://dreamproxies.com/buy-proxies/100-private-proxies/">100 Private Proxies</a> <a href="https://dreamproxies.com/buy-proxies/200-private-proxies/">200 Private Proxies</a> <a href="https://dreamproxies.com/buy-proxies/400-private-proxies/">400 Private Proxies</a> <a href="https://dreamproxies.com/buy-proxies/1000-private-proxies/">1000 Private Proxies</a> <a href="https://dreamproxies.com/buy-proxies/2000-private-proxies/">2000 Private Proxies</a> <a href="https://extraproxies.com/">ExtraProxies.com - Buy Cheap Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/50-proxy-pack/">Buy 50 Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/100-proxy-pack/">Buy 100 Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/200-proxy-pack/">Buy 200 Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/500-proxy-pack/">Buy 500 Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/1000-proxy-pack/">Buy 1000 Private Proxies</a> <a href="https://extraproxies.com/buy-proxies/2000-proxy-pack/">Buy 2000 Private Proxies</a> <a href="https://proxieslive.com/">ProxiesLive</a> <a href="https://proxies-free.com/">Proxies-free.com</a> <a href="https://newproxylists.com/">New Proxy Lists Every Day</a> <a href="https://proxies123.com/">Proxies123</a> </div> <!-- Start of StatCounter Code --> <script> <!-- var sc_project=11212449; var sc_security="38b03c22"; var sc_invisible=1; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); //--> </script> <script type="text/javascript" src="https://secure.statcounter.com/counter/counter.js" async></script> <noscript><div class="statcounter"><a title="web analytics" href="https://statcounter.com/"><img class="statcounter" src="https://c.statcounter.com/11212449/0/38b03c22/1/" alt="web analytics" /></a></div></noscript> <!-- End of StatCounter Code --> <script type='text/javascript'> /* <![CDATA[ */ var rating_form_script = {"ajaxurl":"https:\/\/newproxylists.com\/wp-admin\/admin-ajax.php"}; /* ]]> */ </script> <script type='text/javascript' src='https://newproxylists.com/wp-content/plugins/rating-form/assets/js/front.js?ver=1.5.6'></script> <script type='text/javascript' src='https://newproxylists.com/wp-content/themes/twentysixteen/js/skip-link-focus-fix.js?ver=20160816'></script> <script type='text/javascript'> /* <![CDATA[ */ var screenReaderText = {"expand":"expand child menu","collapse":"collapse child menu"}; /* ]]> */ </script> <script type='text/javascript' src='https://newproxylists.com/wp-content/themes/twentysixteen/js/functions.js?ver=20181230'></script> <script type='text/javascript' src='https://newproxylists.com/wp-includes/js/wp-embed.min.js?ver=5.3.3'></script> </body> </html> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->