google-tag-manager

jQuery being loaded into gtm.js from Google Tag Manager

强颜欢笑 提交于 2019-12-03 20:35:57
I've been having an issue where jQuery v1.9.1 is being included into the top of the gtm.js file. It causes a few issues and can blow away jQuery plugins that are already loaded on jQuery.fn. Regression testing is also a concern. I checked and I don't appear to have any custom tags in the Google Tag Manager that loads jQuery. Ultimately I want to have control over the host domain and version of jQuery loaded. Is there a configuration setting in the GTM interface or some other way that I can disable the inclusion of jQuery? I'm pretty sure that the jQuery code that is included in gtm.js is

How to track custom events when Google Analytics is managed by Google Tag Manager?

假如想象 提交于 2019-12-03 20:17:51
问题 I ended up having to use Google Tag Manager for my site, so Google Analytics is now a part of that. It's all set up correctly and working fine. However, I used to be able to track custom events on my site very easily, with the ga() function: ga('send', 'event', 'Videos', 'play', 'Fall Campaign'); However, now ga() is no longer defined; I get an error in the console, ReferenceError: ga is not defined . I then tried the gtag() method and it also doesn't work (same error message): gtag('event',

Google Tag Manager & Optimize Server-Side experiment sending variation

拥有回忆 提交于 2019-12-03 16:30:14
I'm using the Google Tag Manager container for managing scripts. I'm trying to perform a server-side Optimize/Analytics experiment. I require server-side for performance reasons. I've performed client-side experiments just fine with the GTM/Optimize containers. Here's my GTM code: window.dataLayer = window.dataLayer || []; .... <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager

Android - Google tag Manager with Google Analytics and Firebase Analytics

浪尽此生 提交于 2019-12-03 16:03:17
问题 I am working with a shopping app and would like to track so events occuring on my mobile application. My objective is to track the events using Firebase Analytics and Google Tag manager and push the same events to Google analytics. My event > Firebase > Google tag manager > Google analytics I followed the below guide to integrate Google tag manager and Firebase analytics to my application. https://developers.google.com/tag-manager/android/v5/ I was able to log my events on Firebase console

Firebase Analytics & GTM Tracking

喜欢而已 提交于 2019-12-03 15:12:15
This question is about why one would need GTM for Google Analytics Firebase. There is a similar post on this question, but it has to do with the HOW . I am looking for the reason WHY one would want to implement GTM alongside the already powerful Google Analytics for Firebase. In May 2017, "Firebase Analytics" was renamed to "Google Analytics for Firebase". This should not be confused with "Google Analytics" for mobile apps (legacy). Historically, GTM was used for websites and web-apps, where one can paste the GTM snippet and "listen" for a class/id and then, for example through a tag, bind an

How to test data layer variables in Google Tag Manager?

混江龙づ霸主 提交于 2019-12-03 13:23:15
In Google Tag Manager, I have some data layer variables set up. How can I test that the data is coming in through these variables as I expect? So, I want to verify that the data is getting collected in the dataLayer object (which can be done with Firebug, etc), but more importantly, I want to know that GTM is receiving the data, that the macros and rules are executing as expected, etc. So, on the website, I have some code like this: dataLayer = []; dataLayer.push({ 'city': 'city name', 'state': 'state name', 'subtotalCost': 'subtotal $', 'salesTax': 'sales tax $' }); And then after this, I

Two different google tag manager accounts in same domain

≡放荡痞女 提交于 2019-12-03 11:11:25
I have two google tag manager accounts one mine and another of third party website and I need to put these 2 in this third party website. I tried put two gtm scripts after body tag opening but I saw duplicated content of both accounts. How can I do this? It's possible? This is because both GTM tags are using the default "dataLayer". See below: <!-- Google Tag Manager --> <noscript><iframe... (window,document,'script','dataLayer','GTM-XXXX');</script> <!-- End Google Tag Manager --> Give one or both custom dataLayer names like so...( documentation ): <!-- Google Tag Manager --> <noscript>

Google analytics (via tag manager) loses track of adwords visitors after first pageload

与世无争的帅哥 提交于 2019-12-03 08:09:03
I am experiencing a very strange problem with Google tag manager (GTM), Google analytics (GA) and Google adwords. So far I am getting nowhere with solving it. The setup: We have a singe page application (backbone and marionette) and we are using GTM to push virtual pageviews to GA using standard dataLayer.push events (and also e-commerce events if this is relevant). This setup generally works fine. The problem: The problem is users coming from adwords, with a gclid tag. The first pageview for these users is tracked and attributed do the adword campaign correctly, but as soon as they click any

Google Analytics Event Permutation

烈酒焚心 提交于 2019-12-03 08:01:49
问题 since the 9th of Sep some events (about 0,01 %) and their dimensions were unreadable by permutation. Like the event "VideoView" becomes to "eiVwoediV". Does anybody have the same problem or anybody know why? The analytics is implemented via Google Tag Manager. Thanks for advice! 回答1: We caught it! We luckily had a known customer who created such requests and we phoned him! We nailed it down to one Firefox plugin: https://addons.mozilla.org/de/firefox/addon/cliqz/ We could reproduce the

Android - Google tag Manager with Google Analytics and Firebase Analytics

青春壹個敷衍的年華 提交于 2019-12-03 06:10:22
I am working with a shopping app and would like to track so events occuring on my mobile application. My objective is to track the events using Firebase Analytics and Google Tag manager and push the same events to Google analytics. My event > Firebase > Google tag manager > Google analytics I followed the below guide to integrate Google tag manager and Firebase analytics to my application. https://developers.google.com/tag-manager/android/v5/ I was able to log my events on Firebase console and view in debug console. I have added dependency for Tag manager in my gradle so that the events are